@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Franklin:wght@600;700;800&display=swap');
:root{--paper:#f4efe5;--ink:#171713;--muted:#6d685f;--accent:#c94c2d;--line:rgba(23,23,19,.14)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:"DM Sans",Arial,sans-serif}a{color:inherit}
.site-header{width:min(1420px,calc(100% - 48px));margin:0 auto;height:92px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:700}.brand-mark{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--ink);color:var(--paper);font-family:"Libre Franklin","Arial Black",Arial,sans-serif;font-size:22px}nav{display:flex;gap:28px}nav a{text-decoration:none;font-size:14px;font-weight:600}nav a:hover{color:var(--accent)}
.hero{width:min(1420px,calc(100% - 48px));margin:0 auto;padding:110px 0 126px;border-bottom:1px solid var(--line)}.eyebrow{text-transform:uppercase;letter-spacing:.18em;font-size:12px;font-weight:700;color:var(--accent)}
.hero h1,.section-heading h2,.why h2,.about h2,.contact h2{font-family:"Libre Franklin","Arial Black",Arial,sans-serif;letter-spacing:-.035em}.hero h1{max-width:1080px;font-size:clamp(54px,7.8vw,116px);line-height:.95;margin:24px 0 32px}.hero-copy{max-width:750px;font-size:21px;line-height:1.65;color:var(--muted)}.hero-actions{display:flex;align-items:center;gap:30px;margin-top:42px}.hero-actions p{font-family:"Libre Franklin","Arial Black",Arial,sans-serif;font-size:20px}.button{display:inline-block;background:var(--ink);color:white;text-decoration:none;padding:15px 22px;border-radius:999px;font-weight:700}.button:hover{transform:translateY(-2px)}
.work{width:min(1420px,calc(100% - 48px));margin:0 auto;padding:110px 0}.section-heading{max-width:850px;margin-bottom:90px}.section-heading h2{font-size:clamp(42px,5vw,76px);line-height:1;margin:14px 0 18px}.section-heading>p:last-child{font-size:19px;color:var(--muted)}
.project{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(330px,.72fr);gap:72px;align-items:center;padding:76px 0;border-top:1px solid var(--line)}.project.reverse{grid-template-columns:minmax(330px,.72fr) minmax(0,1.5fr)}.project.reverse .project-preview{order:2}.project-preview{position:relative;min-width:0}.browser{background:#222;border-radius:18px;box-shadow:0 28px 70px rgba(0,0,0,.16);overflow:hidden}.browser-bar{height:44px;background:#e8e5df;display:flex;align-items:center;gap:7px;padding:0 14px}.browser-bar>span{width:10px;height:10px;border-radius:50%;background:#a7a39c}.address{margin-left:14px;background:white;border-radius:8px;padding:6px 14px;font-size:11px;color:#777;flex:1;max-width:330px}.screen{aspect-ratio:16/9;padding:8%;position:relative;overflow:hidden}.phone{position:absolute;width:23%;right:-2%;bottom:-10%;background:#111;border:5px solid #111;border-radius:26px;padding:5px;box-shadow:0 20px 48px rgba(0,0,0,.25)}.reverse .phone{right:auto;left:-2%}.phone-screen{aspect-ratio:9/18;border-radius:18px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:12px;font-size:11px}.phone-screen b{font-size:19px}
.screen-cheese{background:#efe2c6;color:#19130f}.mini-kicker{color:#9f2f1d;font-weight:800;font-size:12px;letter-spacing:.2em}.mini-title{font-family:"Libre Franklin","Arial Black",Arial,sans-serif;font-size:clamp(34px,4vw,66px);font-weight:700;margin-top:12px}.mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:35px}.mini-grid div{height:80px;border:1px solid #b8a98d;background:#f8efd9}.mini-lines{width:55%;height:6px;background:#2c251e;margin-top:22px;box-shadow:0 14px #2c251e,0 28px #2c251e}.cheese-phone{background:#181512;color:white}.cheese-phone span{color:#f0bd34;font-weight:800}
.screen-bts{background:linear-gradient(135deg,#e8f0f4,#f9fbfc);display:grid;place-items:center}.bts-card{width:76%;background:white;padding:7%;border-radius:18px;box-shadow:0 18px 45px rgba(40,70,90,.12)}.bts-card small{display:block;color:#557184;text-transform:uppercase;letter-spacing:.12em;font-weight:700}.bts-card strong{display:block;font-family:"Libre Franklin","Arial Black",Arial,sans-serif;font-size:clamp(27px,3vw,50px);line-height:1.05;margin:12px 0 26px}.bts-card em{font-style:normal;color:#6e7d87}.bts-phone{background:#f6fafc;color:#244355}
.screen-brian{background:#181818;color:#f6f0e6;display:flex;align-items:center}.record-ring{position:absolute;width:46%;aspect-ratio:1;border:2px solid #494949;border-radius:50%;right:-5%;box-shadow:0 0 0 28px #202020,0 0 0 30px #363636,0 0 0 58px #202020}.brian-copy{position:relative;z-index:2;width:63%}.brian-copy small{letter-spacing:.22em;color:#aaa}.brian-copy strong{display:block;font-family:"Libre Franklin","Arial Black",Arial,sans-serif;font-size:clamp(32px,4vw,64px);line-height:1;margin:14px 0 24px}.mini-setlist{color:#bdb6a9}.brian-phone{background:#181818;color:#f5efe5}
.screen-jp{background:#d7cfbf;display:flex;align-items:center;justify-content:center;gap:3%;padding-left:5%}.book{width:18%;height:58%;background:#30323a;box-shadow:8px 10px 0 rgba(0,0,0,.15);transform:rotate(-4deg)}.book-two{background:#8f3d31;transform:rotate(5deg) translateY(5px)}.jp-type{margin-left:4%}.jp-type small{letter-spacing:.18em}.jp-type strong{display:block;font-family:"Libre Franklin","Arial Black",Arial,sans-serif;font-size:clamp(34px,4vw,65px);line-height:1}.jp-type span{display:block;margin-top:20px;color:#5f5b53}.jp-phone{background:#ddd5c6;color:#302d29}
.screen-dem{background:#121212;color:white;display:grid;place-items:center}.road-sign{width:34%;aspect-ratio:1;background:#e4b832;transform:rotate(45deg);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#151515;border:6px solid #151515;box-shadow:0 0 0 3px #e4b832}.road-sign span,.road-sign b{transform:rotate(-45deg);font-weight:900;letter-spacing:.06em;font-size:clamp(14px,2vw,28px)}.road-sign b{color:#a51f1f;font-size:clamp(18px,2.5vw,36px)}.screen-dem p{position:absolute;bottom:6%;font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:#aaa}.dem-phone{background:#111;color:#e2b72e}.dem-phone b{color:#c12828}
.project-number{font-size:12px;text-transform:uppercase;letter-spacing:.16em;color:var(--accent);font-weight:700}.project-copy h3{font-family:"Libre Franklin","Arial Black",Arial,sans-serif;font-size:clamp(38px,4vw,60px);line-height:1;margin:12px 0 14px}.project-tagline{font-size:21px;font-weight:700;line-height:1.35}.project-copy>p:not(.project-number):not(.project-tagline){color:var(--muted);font-size:17px;line-height:1.7}.project-links{margin-top:25px}.project-links a{font-weight:700;text-underline-offset:5px}
.why{width:min(1420px,calc(100% - 48px));margin:0 auto;padding:110px 0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:90px}.why h2{font-size:clamp(43px,5vw,76px);line-height:1;margin:14px 0}.why-copy{padding-top:32px;color:var(--muted);font-size:19px;line-height:1.7}blockquote{font-family:"Libre Franklin","Arial Black",Arial,sans-serif;color:var(--ink);font-size:34px;margin:42px 0 0;padding-top:28px;border-top:1px solid var(--line)}
.about{width:min(1000px,calc(100% - 48px));margin:0 auto;padding:120px 0}.about h2{font-size:clamp(48px,6vw,82px);line-height:1;margin:14px 0 26px}.about>p:last-child{font-size:20px;line-height:1.75;color:var(--muted)}
.contact{background:var(--ink);color:white;padding:110px max(24px,calc((100vw - 1420px)/2))}.contact .eyebrow{color:#e68a70}.contact h2{font-size:clamp(52px,7vw,96px);line-height:.98;max-width:900px;margin:15px 0 38px}.button-light{background:white;color:var(--ink)}footer{background:var(--ink);color:#aaa;border-top:1px solid #333;display:flex;justify-content:space-between;padding:28px max(24px,calc((100vw - 1420px)/2));font-size:13px}
@media(max-width:900px){.site-header{height:auto;padding:22px 0;align-items:flex-start}nav{gap:14px;flex-wrap:wrap;justify-content:flex-end}.hero{padding:80px 0 90px}.project,.project.reverse{grid-template-columns:1fr;gap:48px}.project.reverse .project-preview{order:0}.phone{width:20%;right:2%;bottom:-7%}.reverse .phone{left:auto;right:2%}.why{grid-template-columns:1fr;gap:20px}}
@media(max-width:620px){.site-header,.hero,.work,.why{width:min(100% - 30px,1420px)}.site-header{display:block}.brand{margin-bottom:18px}nav{justify-content:flex-start}.hero h1{font-size:52px}.hero-actions{display:block}.hero-actions p{margin-top:24px}.work{padding-top:80px}.section-heading{margin-bottom:50px}.project{padding:60px 0}.phone{display:none}.browser-bar .address{font-size:9px}.why{padding:80px 0}.about{padding:85px 0}}

.project-links{display:flex;gap:24px;flex-wrap:wrap}
.case-main{width:min(1180px,calc(100% - 48px));margin:0 auto;padding:78px 0 110px}
.case-back{display:inline-block;margin-bottom:52px;text-decoration:none;font-weight:700}
.case-hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:70px;align-items:end;padding-bottom:70px;border-bottom:1px solid var(--line)}
.case-hero h1{font-family:"Libre Franklin","Arial Black",Arial,sans-serif;font-size:clamp(58px,8vw,110px);line-height:.9;letter-spacing:-.045em;margin:16px 0 24px}
.case-lede{font-size:21px;line-height:1.65;color:var(--muted);max-width:720px}
.case-meta{border-left:1px solid var(--line);padding-left:32px}.case-meta div{padding:15px 0;border-bottom:1px solid var(--line)}
.case-meta small{display:block;text-transform:uppercase;letter-spacing:.15em;color:var(--accent);font-weight:700;margin-bottom:5px}
.case-story{display:grid;grid-template-columns:.75fr 1.25fr;gap:80px;padding:80px 0}
.case-story h2,.case-highlight h2{font-family:"Libre Franklin","Arial Black",Arial,sans-serif;font-size:clamp(38px,5vw,66px);line-height:1;margin:0}
.case-copy{font-size:18px;line-height:1.8;color:var(--muted)}.case-copy p:first-child{margin-top:0}
.case-highlight{padding:70px;background:var(--ink);color:white;border-radius:24px;margin:20px 0 80px}
.case-highlight p{font-size:19px;line-height:1.7;color:#c8c5bd;max-width:850px}
.case-highlight ul{display:grid;grid-template-columns:repeat(2,1fr);gap:14px 30px;padding:0;list-style:none;margin:35px 0 0}
.case-highlight li{border-top:1px solid #444;padding-top:14px}
.case-quote{font-family:"Libre Franklin","Arial Black",Arial,sans-serif;font-size:clamp(34px,5vw,64px);line-height:1.08;margin:70px 0;padding-left:30px;border-left:4px solid var(--accent)}
.case-next{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:35px;margin-top:80px}.case-next a{font-weight:700}
@media(max-width:800px){.case-hero,.case-story{grid-template-columns:1fr}.case-meta{border-left:0;padding-left:0}.case-highlight{padding:35px}.case-highlight ul{grid-template-columns:1fr}}

/* V3: single-page expanding project stories */
.project-toggle{
  border:0;
  background:none;
  padding:0;
  font:inherit;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:5px;
  cursor:pointer;
  color:var(--ink);
}
.project-toggle:hover{color:var(--accent)}
.project.is-open{
  padding-bottom:34px;
}
.project-drawer{
  grid-column:1/-1;
  margin-top:34px;
  padding:54px;
  border-radius:24px;
  background:#1b1b18;
  color:white;
  animation:drawerIn .34s ease both;
}
.project-drawer[hidden]{display:none}
@keyframes drawerIn{
  from{opacity:0;transform:translateY(-12px)}
  to{opacity:1;transform:translateY(0)}
}
.drawer-grid{
  display:grid;
  grid-template-columns:.7fr 1.3fr;
  gap:70px;
  align-items:start;
}
.drawer-heading h4{
  font-family:"Libre Franklin","Arial Black",Arial,sans-serif;
  font-size:clamp(42px,5vw,72px);
  line-height:.96;
  margin:14px 0 0;
  letter-spacing:-.04em;
}
.drawer-copy{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:34px;
}
.drawer-block small{
  display:block;
  letter-spacing:.16em;
  font-size:11px;
  font-weight:700;
  color:#e58b72;
  margin-bottom:12px;
}
.drawer-block p{
  margin:0;
  color:#c9c6bd;
  font-size:16px;
  line-height:1.75;
}
.drawer-points{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-top:42px;
}
.drawer-points div{
  min-height:88px;
  padding:18px;
  border:1px solid #393934;
  border-radius:14px;
  display:flex;
  align-items:flex-end;
  font-size:14px;
  line-height:1.35;
}
.project-drawer blockquote{
  font-family:"Libre Franklin","Arial Black",Arial,sans-serif;
  font-size:clamp(32px,4vw,56px);
  line-height:1.05;
  margin:54px 0 0;
  padding:30px 0 0;
  border-top:1px solid #3a3a34;
  border-left:0;
  color:white;
}
.drawer-close-row{
  display:flex;
  justify-content:flex-end;
  margin-top:34px;
}
.drawer-close{
  background:white;
  color:#171713;
  border:0;
  border-radius:999px;
  padding:12px 18px;
  font-weight:700;
  cursor:pointer;
}
.drawer-close:hover{transform:translateY(-1px)}
@media(max-width:900px){
  .drawer-grid,.drawer-copy{grid-template-columns:1fr}
  .drawer-grid{gap:30px}
  .drawer-points{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:620px){
  .project-drawer{padding:28px 22px}
  .drawer-points{grid-template-columns:1fr}
}

/* V5 real portfolio previews */
.real-browser{background:#111}
.real-screen{
  aspect-ratio:16/9;
  overflow:hidden;
  background:#111;
  position:relative;
}
.real-screen img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:top center;
  display:block;
}
.contain-screen{
  background:#0f172a;
  display:grid;
  place-items:center;
}
.contain-screen img{
  object-fit:cover;
  object-position:top center;
}
.preview-caption{
  position:absolute;
  left:24px;
  bottom:-44px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  color:var(--muted);
}
.jp-live-preview{
  min-height:390px;
  aspect-ratio:16/9;
  background:#eee8dc;
  display:grid;
  grid-template-columns:.78fr 1.22fr;
  align-items:center;
  gap:26px;
  padding:7%;
  overflow:hidden;
}
.jp-preview-copy small{
  display:block;
  letter-spacing:.18em;
  font-size:11px;
  font-weight:800;
  margin-bottom:10px;
}
.jp-preview-copy strong{
  display:block;
  font-family:"Libre Franklin","Arial Black",Arial,sans-serif;
  font-size:clamp(30px,4vw,58px);
  line-height:.95;
  margin-bottom:18px;
}
.jp-preview-copy span{
  color:#5f594f;
  line-height:1.5;
}
.jp-books{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  min-width:0;
}
.jp-books img{
  width:31%;
  max-height:300px;
  object-fit:contain;
  box-shadow:0 14px 28px rgba(0,0,0,.22);
}
.jp-books img:nth-child(2){transform:translateY(12px)}
.dem-live-preview{
  aspect-ratio:16/9;
  min-height:390px;
  background:#111;
  color:white;
  display:grid;
  grid-template-columns:.72fr 1.28fr;
  gap:8%;
  align-items:center;
  padding:7%;
}
.dem-live-preview img{
  width:100%;
  max-width:320px;
  transform:rotate(-2deg);
}
.dem-live-preview small{
  color:#e2b72e;
  font-weight:800;
  letter-spacing:.14em;
}
.dem-live-preview strong{
  display:block;
  font-family:"Libre Franklin","Arial Black",Arial,sans-serif;
  font-size:clamp(28px,3.7vw,56px);
  line-height:1;
  margin:12px 0 20px;
}
.dem-live-preview span{color:#aaa}
.project-preview{margin-bottom:38px}
@media(max-width:700px){
  .jp-live-preview,.dem-live-preview{grid-template-columns:1fr;min-height:auto}
  .jp-books img{max-height:170px}
  .dem-live-preview img{max-width:180px}
  .preview-caption{position:static;margin-top:12px}
}

/* V6: use the screen, don't make people excavate the page */
.v6-compact .site-header{height:74px}
.v6-compact .hero{padding:66px 0 76px}
.v6-compact .hero h1{
  max-width:1040px;
  font-size:clamp(46px,5.8vw,82px);
  line-height:.98;
  margin:18px 0 24px;
}
.v6-compact .hero-copy{font-size:18px;line-height:1.55;max-width:720px}
.v6-compact .hero-actions{margin-top:30px}
.v6-compact .work{padding:76px 0}
.v6-compact .section-heading{margin-bottom:48px}
.v6-compact .section-heading h2{
  font-size:clamp(38px,4.3vw,62px);
  line-height:1.02;
}
.v6-compact .project{padding:56px 0;gap:58px}
.v6-compact .project-copy h3{font-size:clamp(34px,3.6vw,52px)}
.v6-compact .why{padding:78px 0}
.v6-compact .why h2{font-size:clamp(38px,4.2vw,60px)}
.v6-compact .about{padding:82px 0}
.v6-compact .about h2{font-size:clamp(40px,4.8vw,66px)}
.v6-compact .contact{padding-top:78px;padding-bottom:78px}
.v6-compact .contact h2{font-size:clamp(44px,5.5vw,72px)}

.real-screen img{
  object-fit:contain;
  object-position:top center;
  background:#eeeae1;
}
.visual-tour{
  margin-top:46px;
  padding-top:34px;
  border-top:1px solid #3a3a34;
}
.visual-tour-label{
  margin:0 0 18px;
  color:#e58b72;
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:11px;
  font-weight:800;
}
.visual-tour-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.tour-card{
  margin:0;
  border:1px solid #393934;
  border-radius:15px;
  overflow:hidden;
  background:#22221e;
}
.tour-card img{
  width:100%;
  height:230px;
  object-fit:cover;
  display:block;
}
.tour-card-1 img{object-position:top center}
.tour-card-2 img{object-position:center center}
.tour-card figcaption{padding:16px 18px 18px}
.tour-card strong{display:block;font-size:15px;margin-bottom:5px}
.tour-card span{display:block;color:#aaa79f;font-size:13px;line-height:1.5}
@media(max-width:700px){
 .v6-compact .hero{padding:48px 0 58px}
 .v6-compact .hero h1{font-size:44px}
 .visual-tour-grid{grid-template-columns:1fr}
 .tour-card img{height:190px}
}

/* V7 Cheese Merge supplied homepage preview */
.project-cheese .real-screen{
  background:#181612;
}
.project-cheese .real-screen img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:top center;
}
.project-cheese .tour-card:first-child img{
  object-position:top center;
}

/* V9: sticky, shrinking navigation */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(244,239,229,.96);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  transition:height .22s ease, box-shadow .22s ease, background-color .22s ease;
}
.site-header.is-scrolled{
  height:54px !important;
  box-shadow:0 8px 24px rgba(23,23,19,.08);
}
.site-header .brand-mark{
  transition:width .22s ease,height .22s ease,font-size .22s ease;
}
.site-header.is-scrolled .brand-mark{
  width:30px;
  height:30px;
  font-size:18px;
}
.site-header nav a{
  transition:font-size .22s ease;
}
.site-header.is-scrolled nav a{
  font-size:13px;
}
section[id]{
  scroll-margin-top:72px;
}
@media(max-width:620px){
  .site-header{
    position:sticky;
    top:0;
    padding:14px 0;
  }
  .site-header.is-scrolled{
    height:auto !important;
    padding:10px 0;
  }
  section[id]{
    scroll-margin-top:110px;
  }
}

/* V13: show the complete BTS homepage preview */
.project-bts .real-screen {
  background: #0f192d;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-bts .real-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

/* V14: desktop + mobile responsive portfolio previews */
.project .real-screen{
  position:relative;
  overflow:visible;
  margin-bottom:34px;
}
.project .real-screen > img{
  display:block;
}

/* Phone is intentionally secondary: enough to show responsive work without
   covering the desktop design. */
.mobile-device{
  position:absolute;
  right:-18px;
  bottom:-32px;
  width:22%;
  min-width:105px;
  max-width:155px;
  aspect-ratio:9 / 19.5;
  padding:5px;
  border:3px solid #171713;
  border-radius:20px;
  background:#171713;
  box-shadow:0 14px 30px rgba(23,23,19,.24);
  overflow:hidden;
  z-index:4;
}
.mobile-device img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:top center;
  border-radius:13px;
}

/* On alternating rows, put the phone toward the inside edge so it points
   visually toward the project copy rather than hanging off the page. */
.project.reverse .mobile-device{
  right:auto;
  left:-18px;
}

@media(max-width:900px){
  .mobile-device{
    width:20%;
    min-width:92px;
    right:-8px;
    bottom:-24px;
  }
  .project.reverse .mobile-device{
    left:-8px;
  }
}

@media(max-width:620px){
  .project .real-screen{
    margin-bottom:24px;
  }
  .mobile-device{
    width:24%;
    min-width:78px;
    max-width:112px;
    right:8px;
    bottom:-18px;
    border-width:2px;
    border-radius:15px;
    padding:3px;
  }
  .project.reverse .mobile-device{
    left:auto;
    right:8px;
  }
  .mobile-device img{
    border-radius:10px;
  }
}

/* V15: cleaner phone framing */
.mobile-device{
  right:18px;
  bottom:-24px;
  width:24%;
  min-width:118px;
  max-width:168px;
  aspect-ratio:9 / 19.5;
  border-radius:22px;
}

/* The supplied Android captures have a status bar roughly 4.5% of the image
   height. Enlarge and shift the image so that strip sits above the phone crop,
   while retaining Chrome's address bar below it. */
.mobile-device img{
  width:100%;
  height:auto;
  min-height:104.8%;
  object-fit:cover;
  object-position:top center;
  transform:translateY(-4.5%);
  border-radius:14px;
}

.project.reverse .mobile-device{
  right:18px;
  left:auto;
}

@media(max-width:900px){
  .mobile-device{
    right:12px;
    bottom:-20px;
    width:23%;
    min-width:104px;
    max-width:148px;
  }
  .project.reverse .mobile-device{
    right:12px;
    left:auto;
  }
}

@media(max-width:620px){
  .mobile-device{
    right:8px;
    bottom:-16px;
    width:25%;
    min-width:88px;
    max-width:118px;
  }
  .project.reverse .mobile-device{
    right:8px;
    left:auto;
  }
}

/* V16: DEM and JP use custom desktop previews rather than .real-screen.
   Anchor their phone overlays to the browser frame itself. */
.project-dem .browser,
.project-jp .browser{
  position:relative;
  overflow:visible;
  margin-bottom:34px;
}

.project-dem .browser .mobile-device,
.project-jp .browser .mobile-device{
  right:18px;
  left:auto;
  bottom:-24px;
}

@media(max-width:900px){
  .project-dem .browser .mobile-device,
  .project-jp .browser .mobile-device{
    right:12px;
    left:auto;
    bottom:-20px;
  }
}

@media(max-width:620px){
  .project-dem .browser,
  .project-jp .browser{
    margin-bottom:24px;
  }
  .project-dem .browser .mobile-device,
  .project-jp .browser .mobile-device{
    right:8px;
    left:auto;
    bottom:-16px;
  }
}

/* V17: keep DEM and JP phone previews inside the browser frame,
   matching the visual treatment of the other projects. */
.project-dem .browser .mobile-device,
.project-jp .browser .mobile-device{
  right:18px;
  left:auto;
  bottom:18px;
}

@media(max-width:900px){
  .project-dem .browser .mobile-device,
  .project-jp .browser .mobile-device{
    right:12px;
    left:auto;
    bottom:12px;
  }
}

@media(max-width:620px){
  .project-dem .browser .mobile-device,
  .project-jp .browser .mobile-device{
    right:8px;
    left:auto;
    bottom:8px;
  }
}

/* V19 cleanup */
.contact-email {
  margin: 16px 0 0;
}
.contact-email a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* V20: straighten the Dead End Men logo card in the desktop preview */
.project-dem .dem-live-preview > img {
  transform: none;
}

/* V21: real current Dead End Men desktop + mobile screenshots */
.project-dem .dem-real-screen {
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  background: #101012;
}
.project-dem .dem-real-screen > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}
.project-dem .dem-real-screen .mobile-device {
  right: 18px;
  bottom: 18px;
  left: auto;
}
@media(max-width:900px){
  .project-dem .dem-real-screen .mobile-device {
    right: 12px;
    bottom: 12px;
  }
}
@media(max-width:620px){
  .project-dem .dem-real-screen .mobile-device {
    right: 8px;
    bottom: 8px;
  }
}

/* V23: portfolio preview polish.
   Desktop is the hero; mobile is a smaller responsive-design cue. */
.mobile-device {
  width: 17%;
  min-width: 88px;
  max-width: 118px;
  right: 16px;
  bottom: 16px;
  left: auto;
  border-radius: 18px;
  border-width: 3px;
  padding: 4px;
  box-shadow: 0 10px 22px rgba(23,23,19,.22);
}

.project.reverse .mobile-device,
.project-dem .dem-real-screen .mobile-device,
.project-jp .browser .mobile-device {
  right: 16px;
  left: auto;
  bottom: 16px;
}

/* DEM's new source capture already contains the full intended composition.
   Fit it instead of cropping through the logo/headline. */
.project-dem .dem-real-screen {
  background: #0f0f11;
}
.project-dem .dem-real-screen > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* Keep the supporting phone compact at narrower portfolio widths too. */
@media(max-width:900px){
  .mobile-device,
  .project.reverse .mobile-device,
  .project-dem .dem-real-screen .mobile-device,
  .project-jp .browser .mobile-device {
    width: 18%;
    min-width: 78px;
    max-width: 105px;
    right: 12px;
    bottom: 12px;
    left: auto;
  }
}

@media(max-width:620px){
  .mobile-device,
  .project.reverse .mobile-device,
  .project-dem .dem-real-screen .mobile-device,
  .project-jp .browser .mobile-device {
    width: 21%;
    min-width: 72px;
    max-width: 94px;
    right: 8px;
    bottom: 8px;
    left: auto;
    border-radius: 14px;
    border-width: 2px;
    padding: 3px;
  }
}

/* V24: final visual polish */
.project-copy > p:not(.project-number):not(.project-tagline){
  font-size:1.055em;
  line-height:1.72;
}

.contact-email{
  margin-top:20px;
  font-size:1.08rem;
  font-weight:700;
}
.contact-email a{
  display:inline-block;
}

/* Give keyboard users a clear focus state without changing the visual design. */
a:focus-visible,
button:focus-visible{
  outline:2px solid currentColor;
  outline-offset:4px;
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto !important; }
  *, *::before, *::after{
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
  }
}
