/* ============================================================
   PEARCE DESIGN — AI-native creative agency
   Metajive-style color-frame system
   ============================================================ */

:root{
  --lime:   #A6FF00;
  --green:  #3DDC84;
  --pink:   #FF6EB3;
  --yellow: #F2F500;
  --blue:   #3BB9FF;
  --violet: #A78BFA;

  --ink:    #101010;
  --panel:  #1C1C1C;
  --paper:  #FAFAF7;
  --mist:   #EDEDE8;

  --frame:  var(--lime);          /* live frame color, JS-driven on home */
  --accent: var(--lime);          /* per-page accent */

  --inset: clamp(14px, 4vw, 72px);
  --gap: 8px;
  --radius-pill: 999px;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(.22,.8,.24,1);
  --frame-fade: 900ms;
  --slide-fx: 1000ms;
  --slide-ease: cubic-bezier(.77,0,.18,1);
}

*{ margin:0; padding:0; box-sizing:border-box; }

html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
}

body{
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection{ background: var(--accent); color: var(--ink); }

img, video{ display:block; max-width:100%; }

a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; background:none; border:none; cursor:pointer; }
ul{ list-style:none; }

/* ---------- type scale ---------- */

.display-xl{
  font-size: clamp(58px, 9.2vw, 172px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.96;
}
.display-lg{
  font-size: clamp(44px, 6.4vw, 110px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.0;
}
.display-md{
  font-size: clamp(32px, 4vw, 64px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.eyebrow{
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lead{
  font-size: clamp(19px, 1.8vw, 26px);
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ============================================================
   NAV
   ============================================================ */

.nav{
  position: relative;
  z-index: 60;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: clamp(18px, 2.6vw, 34px) var(--inset);
}

.nav-logo{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.nav-logo .logo-mark{
  height: 29px;
  width: auto;
  display: block;
  flex: none;
  transition: transform .45s var(--ease-out);
}
.nav-logo:hover .logo-mark{ transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce){
  .nav-logo .logo-mark{ transition: none; }
  .nav-logo:hover .logo-mark{ transform: none; }
}
/* The mark ships as a dark PNG; flip it to white on dark surfaces. */
.menu-overlay .nav-logo .logo-mark{
  height: 33px;
  filter: brightness(0) invert(1);
}

.nav-links{
  display:flex;
  align-items:center;
  gap: clamp(18px, 2.6vw, 42px);
  font-weight: 500;
  font-size: 16px;
}
.nav-links > li{ position:relative; }
.nav-links a{ position:relative; padding: 6px 0; }
.nav-links > li > a::after,
.nav-links > li > button::after{
  content:"";
  position:absolute;
  left:0; right:100%;
  bottom:0;
  height:2px;
  background: currentColor;
  transition: right .3s var(--ease-out);
}
.nav-links > li > a:hover::after{ right:0; }

/* services dropdown */
.nav-drop{ position:relative; }
.nav-drop > button{
  display:flex; align-items:center; gap:7px;
  font-weight:500; font-size:16px; padding:6px 0;
}
.nav-drop > button svg{ transition: transform .25s var(--ease-out); }
.nav-drop.open > button svg{ transform: rotate(180deg); }
.nav-drop-menu{
  position:absolute;
  top: calc(100% + 14px);
  left: -18px;
  min-width: 230px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px;
  border-radius: 14px;
  opacity:0;
  visibility:hidden;
  transform: translateY(8px);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility .25s;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.nav-drop:hover .nav-drop-menu,
.nav-drop.open .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu{
  opacity:1; visibility:visible; transform: translateY(0);
}
.nav-drop-menu a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding: 11px 14px;
  border-radius: 9px;
  font-size:15.5px;
  font-weight:500;
}
.nav-drop-menu a:hover{ background: rgba(255,255,255,.09); }
.nav-drop-menu a .dot{
  width:8px; height:8px; border-radius:50%;
  flex: none;
}

.nav-cta{
  display:inline-flex;
  align-items:center;
  gap:10px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-weight: 500;
  font-size: 15px;
  transition: background .25s var(--ease-out), color .25s var(--ease-out);
}
.nav-cta:hover{ background: var(--ink); color: var(--paper); }

.nav-burger{ display:none; }

/* mobile menu overlay */
.menu-overlay{
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  color: var(--paper);
  padding: 28px var(--inset) 40px;
  display:flex;
  flex-direction:column;
  transform: translateY(-102%);
  transition: transform .5s var(--ease-out);
}
.menu-overlay.open{ transform: translateY(0); }
.menu-overlay-top{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom: 8vh;
}
.menu-overlay-close{
  font-size: 15px; font-weight:600; letter-spacing:.1em; text-transform:uppercase;
  border:1px solid rgba(255,255,255,.4); border-radius:var(--radius-pill);
  padding:10px 18px;
}
.menu-overlay nav a{
  display:block;
  font-size: clamp(34px, 9vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.22;
}
.menu-overlay nav a span{ color: var(--accent); font-size:.5em; vertical-align: super; margin-left:8px; }
.menu-overlay .menu-sub{
  margin: 6px 0 6px 22px;
  font-size: clamp(19px, 4.6vw, 24px);
  line-height: 1.9;
  font-weight:400;
  color: rgba(255,255,255,.75);
}
.menu-overlay-foot{
  margin-top:auto;
  display:flex; justify-content:space-between; gap:20px;
  font-size:14px; color: rgba(255,255,255,.6);
}

@media (max-width: 860px){
  .nav-links, .nav-cta{ display:none; }
  .nav-burger{
    display:inline-flex; align-items:center; gap:10px;
    font-weight:600; font-size:14px; letter-spacing:.12em; text-transform:uppercase;
    border: 1.5px solid var(--ink);
    border-radius: var(--radius-pill);
    padding: 10px 18px;
  }
}

/* ============================================================
   HOME — color frame + hero carousel
   ============================================================ */

body.home{
  background: var(--frame);
  transition: background var(--frame-fade) ease;
}

.hero{
  position: relative;
  padding: 0 var(--inset);
}

.hero-media{
  position: relative;
  overflow: hidden;
  background: var(--panel);
}
.hero-media-top{
  height: clamp(300px, 62vh, 640px);
}
.hero-bottom{
  display:grid;
  grid-template-columns: 1fr clamp(280px, 27vw, 430px);
  gap: var(--gap);
  margin-top: var(--gap);
}
.hero-media-bottom{
  height: clamp(430px, 88vh, 720px);
}

/* stacked slide layers inside each media panel.
   Slides push in horizontally: top panel enters from the right
   (content travels leftward), bottom panel enters from the left —
   opposing directions, Metajive-style. Inner media lags slightly
   behind the panel for a parallax reveal. */
.slide-layer{
  position:absolute;
  inset:0;
}
.slide-layer video,
.slide-layer img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: no-preference){
  .slide-layer{
    transform: translateX(100%);
    transition: transform var(--slide-fx) var(--slide-ease);
    z-index:1;
  }
  .slide-layer > *{
    transition: transform var(--slide-fx) var(--slide-ease);
    transform: translateX(-12%) scale(1.3);
  }
  .slide-layer.active{ transform: translateX(0); z-index:2; }
  .slide-layer.active > *{ transform: none; }
  .slide-layer.exit{ transform: translateX(-100%); }
  .slide-layer.exit > *{ transform: translateX(12%) scale(1.3); }

  /* bottom panel mirrors the direction */
  .hero-media-bottom .slide-layer{ transform: translateX(-100%); }
  .hero-media-bottom .slide-layer > *{ transform: translateX(12%) scale(1.3); }
  .hero-media-bottom .slide-layer.active{ transform: translateX(0); }
  .hero-media-bottom .slide-layer.active > *{ transform: none; }
  .hero-media-bottom .slide-layer.exit{ transform: translateX(100%); }
  .hero-media-bottom .slide-layer.exit > *{ transform: translateX(-12%) scale(1.3); }

  /* instant reset once a layer has finished exiting */
  .slide-layer.no-trans,
  .slide-layer.no-trans > *{ transition: none !important; }
}

@media (prefers-reduced-motion: reduce){
  .slide-layer{
    opacity:0;
    transition: opacity var(--frame-fade) ease;
  }
  .slide-layer.active{ opacity:1; }
}

/* placeholder art shown until real media is dropped in */
.ph{
  position:absolute; inset:0;
  display:flex; align-items:flex-start; justify-content:flex-end;
  padding: 18px;
}
.ph::after{
  content:"";
  position:absolute; inset:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events:none;
}
.hero-media-bottom .ph{ align-items:flex-end; }
.ph .ph-tag{
  position:relative;
  z-index:2;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.45);
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}

/* per-slide placeholder art */
.ph-brand{  background: radial-gradient(120% 90% at 15% 10%, #2b2b2b 0%, #101010 52%), #101010; }
.ph-brand::before{ content:"Pd®"; position:absolute; right:-2%; top:-12%; font-size: clamp(190px, 30vw, 420px); font-weight:700; letter-spacing:-.05em; color: var(--lime); opacity:.9; }
.ph-arch{ background: linear-gradient(180deg, #d8b26a 0%, #b3703a 42%, #21303c 100%); }
.ph-arch::before{ content:""; position:absolute; left:8%; right:8%; bottom:0; height:52%; background: linear-gradient(90deg, #16202a 0 30%, #33465a 30% 32%, #101820 32% 62%, #3b5064 62% 64%, #182430 64% 100%); clip-path: polygon(0 28%, 40% 12%, 100% 24%, 100% 100%, 0 100%); }
.ph-social{ background: radial-gradient(90% 120% at 80% 15%, #7b2ff7 0%, #b84fd4 38%, #f7f2fa 78%); }
.ph-social::before{ content:""; position:absolute; left:12%; top:18%; width:46%; height:64%; background: rgba(255,255,255,.85); border-radius:22px; box-shadow: 24px 26px 0 rgba(16,16,16,.85); }
.ph-web{ background:#0e0e12; }
.ph-web::before{ content:""; position:absolute; inset:12% 10%; background: linear-gradient(120deg, #14141a 0 55%, #1e1e28 55% 100%); border:1px solid rgba(255,255,255,.16); border-radius:10px; box-shadow: 0 0 0 1px rgba(242,245,0,.12), 0 30px 80px rgba(0,0,0,.6); }
.ph-web::after{ background-image: linear-gradient(rgba(242,245,0,0) 0 96%, rgba(242,245,0,.5) 96% 100%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.14'/%3E%3C/svg%3E"); }
.ph-ugc{ background: radial-gradient(110% 110% at 30% 20%, #ffd9ec 0%, #ff8ec4 45%, #4d1030 100%); }
.ph-ugc::before{ content:""; position:absolute; right:14%; top:14%; width:34%; height:72%; background:#141414; border-radius: 26px; border: 3px solid rgba(255,255,255,.7); }
.ph-interior{ background: linear-gradient(180deg, #cbb9a4 0%, #8f7a63 55%, #2c241d 100%); }
.ph-interior::before{ content:""; position:absolute; left:0; right:0; bottom:0; height:44%; background: linear-gradient(90deg, #3a2f26 0 22%, #56463a 22% 24%, #2e251e 24% 70%, #6b5a4a 70% 72%, #241d17 72% 100%); }
.ph-motion{ background: conic-gradient(from 210deg at 60% 40%, #101010, #3bb9ff 28%, #101010 55%, #a6ff00 78%, #101010); }
.ph-render{ background: linear-gradient(200deg, #f0e7d8 0%, #c9d4dd 45%, #45586b 100%); }
.ph-render::before{ content:""; position:absolute; left:10%; bottom:0; width:58%; height:62%; background: linear-gradient(90deg,#1d2733 0 46%, #ffffff 46% 48%, #26313d 48% 100%); clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%); }
.ph-product{ background: radial-gradient(80% 80% at 50% 30%, #e9edf2 0%, #aab7c4 60%, #5a6673 100%); }
.ph-product::before{ content:""; position:absolute; left:50%; top:50%; width:34%; aspect-ratio:1; transform: translate(-50%,-50%) rotate(18deg); background: linear-gradient(160deg,#16181c,#3a4250); border-radius: 18px; box-shadow: 0 40px 80px rgba(0,0,0,.35); }

/* hero headline straddling the two panels */
.hero-title{
  position:absolute;
  z-index: 20;
  left: calc(var(--inset) + 4vw);
  top: clamp(300px, 62vh, 640px);
  transform: translateY(-52%);
  color: #fff;
  pointer-events:none;
}
.hero-title .line{
  display:block;
  overflow:hidden;
}
.hero-title .line > span{
  display:block;
  transform: translateY(110%);
  animation: heroRise 1s var(--ease-out) forwards;
}
.hero-title .line:nth-child(2) > span{ animation-delay: .12s; }
@keyframes heroRise{ to{ transform: translateY(0); } }

/* dark copy panel */
.hero-panel{
  background: var(--panel);
  color: #EAEAE5;
  padding: clamp(26px, 3vw, 44px);
  display:flex;
  flex-direction:column;
  min-height: 100%;
}
.hero-panel p{
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.42;
  max-width: 34ch;
  letter-spacing: -0.01em;
}
.hero-panel .hero-slide-meta{
  margin-top: 26px;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  display:flex;
  align-items:center;
  gap:10px;
  min-height: 18px;
}
.hero-panel .hero-slide-meta .dot{
  width:8px; height:8px; border-radius:50%;
  background: var(--frame);
  transition: background var(--frame-fade) ease;
  flex:none;
}
#hero-service{ transition: opacity .4s ease; }
#hero-service.swap{ opacity:0; }

.hero-panel .panel-foot{
  margin-top:auto;
  padding-top: 40px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
}

.pill{
  white-space: nowrap;
  display:inline-flex;
  align-items:center;
  gap:10px;
  border: 1.5px solid rgba(255,255,255,.85);
  color:#fff;
  border-radius: var(--radius-pill);
  padding: 13px 24px;
  font-weight:500;
  font-size:15.5px;
  transition: background .25s var(--ease-out), color .25s var(--ease-out), border-color .25s;
}
.pill .dot{
  width:7px; height:7px; border-radius:50%;
  background: var(--frame, var(--accent));
  transition: background var(--frame-fade) ease;
}
.pill:hover{ background:#fff; color: var(--ink); }

.pill-ink{
  border-color: var(--ink);
  color: var(--ink);
}
.pill-ink .dot{ background: var(--ink); }
.pill-ink:hover{ background: var(--ink); color:#fff; }

.hero-progress{
  display:flex;
  gap:6px;
}
.hero-progress button{
  width: 26px;
  height: 3px;
  background: rgba(255,255,255,.25);
  border-radius: 3px;
  overflow:hidden;
  position:relative;
  padding:0;
}
.hero-progress button.active::after{
  content:"";
  position:absolute; inset:0;
  background:#fff;
  transform-origin:left;
  animation: prog var(--slide-ms, 5200ms) linear forwards;
}
@keyframes prog{ from{ transform: scaleX(0);} to{ transform: scaleX(1);} }
@media (prefers-reduced-motion: reduce){
  .hero-progress button.active::after{ animation: none; transform:none; }
  .hero-title .line > span{ animation:none; transform:none; }
}

/* home sections sit on a paper sheet inside the frame */
.home-sheet{
  margin-top: var(--gap);
  background: var(--paper);
}

@media (max-width: 860px){
  .hero-bottom{ grid-template-columns: 1fr; }
  .hero-media-bottom{ height: clamp(320px, 56vh, 480px); }
  .hero-title{
    left: calc(var(--inset) + 4vw);
    transform: translateY(-64%);
  }
  .hero-panel{ min-height: 0; }
  .hero-panel .panel-foot{ padding-top: 28px; }
}

/* ============================================================
   SHARED SECTIONS
   ============================================================ */

.section{
  padding: clamp(70px, 10vw, 140px) var(--inset);
}
.section-tight{ padding-top: clamp(40px, 6vw, 80px); }

.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 24px;
  margin-bottom: clamp(34px, 4.5vw, 64px);
}
.section-head .eyebrow{
  display:inline-flex; align-items:center; gap:10px;
}
.section-head .eyebrow::before{
  content:"";
  width:9px; height:9px; border-radius:50%;
  background: var(--accent);
}

/* reveal on scroll */
.reveal{
  opacity:0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
}

/* intro statement */
.statement{
  max-width: 1150px;
}
.statement h2{
  font-size: clamp(30px, 4.3vw, 66px);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.12;
}
.statement h2 em{
  font-style: normal;
  background: var(--accent);
  padding: 0 .12em;
  border-radius: .12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.statement .lead{ margin-top: 28px; max-width: 62ch; color:#3c3c38; }

/* services rows */
.service-rows{ border-top: 1.5px solid var(--ink); }
.service-row{
  display:grid;
  grid-template-columns: minmax(220px, 1.15fr) 1.6fr auto;
  gap: clamp(16px, 3vw, 48px);
  align-items:center;
  padding: clamp(22px, 3vw, 40px) 0;
  border-bottom: 1.5px solid var(--ink);
  position:relative;
  transition: padding-left .35s var(--ease-out);
}
a.service-row:hover{ padding-left: clamp(10px, 1.4vw, 22px); }
.service-row::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width:0;
  background: var(--row-accent, var(--accent));
  transition: width .35s var(--ease-out);
}
a.service-row:hover::before{ width: 6px; }
.service-row h3{
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
}
.service-row p{
  color:#4a4a45;
  font-size: 16.5px;
  max-width: 52ch;
}
.service-row .arrow{
  width: 48px; height: 48px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display:grid; place-items:center;
  transition: background .3s var(--ease-out), transform .3s var(--ease-out);
  flex:none;
}
a.service-row:hover .arrow{
  background: var(--row-accent, var(--accent));
  transform: rotate(45deg);
}
@media (max-width: 760px){
  .service-row{ grid-template-columns: 1fr auto; }
  .service-row p{ grid-column: 1 / -1; }
}

/* marquee */
.marquee{
  overflow:hidden;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding: 18px 0;
  background: var(--paper);
}
.marquee-track{
  display:flex;
  gap: 3rem;
  width:max-content;
  animation: marquee 30s linear infinite;
  font-size: clamp(20px, 2.4vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.marquee-track .sep{ color: var(--accent); }
@keyframes marquee{ to{ transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .marquee-track{ animation:none; } }

/* work grid */
.work-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.4vw, 36px);
}
.work-card{ display:block; }
.work-card:nth-child(2){ margin-top: clamp(30px, 6vw, 90px); }
.work-card .work-media{
  position:relative;
  overflow:hidden;
  aspect-ratio: 4 / 3.1;
  background:#191919;
}
.work-card .work-media > *{ transition: transform .8s var(--ease-out); }
.work-card:hover .work-media > *{ transform: scale(1.04); }
.work-card figcaption{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  padding-top: 16px;
}
.work-card figcaption h3{
  font-size: clamp(20px, 2vw, 28px);
  font-weight:500;
  letter-spacing:-0.02em;
}
.work-card figcaption span{
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color:#6b6b64;
  flex:none;
}
@media (max-width: 760px){
  .work-grid{ grid-template-columns: 1fr; }
  .work-card:nth-child(2){ margin-top:0; }
}

/* process — the AI pipeline (a true sequence) */
.process{
  background: var(--ink);
  color: var(--paper);
}
.process .section-head .eyebrow::before{ background: var(--accent); }
.process-steps{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 44px);
  counter-reset: step;
}
.process-step{
  border-top: 1.5px solid rgba(250,250,247,.28);
  padding-top: 22px;
  counter-increment: step;
}
.process-step::before{
  content: counter(step, decimal-leading-zero);
  display:block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing:.12em;
  color: var(--accent);
  margin-bottom: 22px;
}
.process-step h3{
  font-size: clamp(21px, 1.9vw, 28px);
  font-weight:500;
  letter-spacing:-0.02em;
  margin-bottom: 12px;
}
.process-step p{
  color: rgba(250,250,247,.68);
  font-size: 16px;
}
@media (max-width: 900px){
  .process-steps{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .process-steps{ grid-template-columns: 1fr; }
}

/* stats strip */
.stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 40px);
}
.stat{
  border-top: 1.5px solid var(--ink);
  padding-top: 18px;
}
.stat strong{
  display:block;
  font-size: clamp(40px, 5vw, 76px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height:1;
}
.stat span{ color:#55554f; font-size:15.5px; display:block; margin-top:10px; max-width: 26ch; }
@media (max-width: 700px){ .stats{ grid-template-columns:1fr; } }

/* big CTA band */
.cta-band{
  background: var(--accent);
  color: var(--ink);
  padding: clamp(80px, 12vw, 170px) var(--inset);
  text-align: left;
}
.cta-band h2{
  font-size: clamp(52px, 9vw, 160px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: .98;
  max-width: 10ch;
}
.cta-band .cta-row{
  margin-top: clamp(30px, 4vw, 56px);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap: 20px;
}
.cta-band .pill{
  border-color: var(--ink);
  color: var(--ink);
  font-size: 17px;
  padding: 16px 30px;
}
.cta-band .pill .dot{ background: var(--ink); }
.cta-band .pill:hover{ background: var(--ink); color:#fff; }
.cta-band .cta-mail{
  font-size: clamp(17px, 2vw, 24px);
  font-weight:500;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer{
  background: var(--ink);
  color: var(--paper);
  padding: clamp(60px, 8vw, 110px) var(--inset) 34px;
}
.foot-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: clamp(50px, 7vw, 90px);
}
.foot-grid h4{
  font-size: 13px;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  color: rgba(250,250,247,.5);
  margin-bottom: 18px;
}
.foot-grid ul li{ margin-bottom: 12px; }
.foot-grid a{ opacity:.9; transition: opacity .2s, color .2s; }
.foot-grid a:hover{ color: var(--accent); opacity:1; }
.foot-about p{
  color: rgba(250,250,247,.7);
  max-width: 34ch;
  font-size: 16px;
  margin-top: 14px;
}
.foot-wordmark{
  font-size: clamp(54px, 11.5vw, 190px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: .95;
  color: var(--paper);
  border-top: 1px solid rgba(250,250,247,.2);
  padding-top: clamp(30px, 4vw, 50px);
  user-select:none;
}
.foot-wordmark sup{ font-size:.25em; color: var(--accent); }
.foot-legal{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap: 14px;
  margin-top: 26px;
  font-size: 13.5px;
  color: rgba(250,250,247,.45);
}
@media (max-width: 860px){
  .foot-grid{ grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   INNER PAGES
   ============================================================ */

.page-hero{
  background: var(--accent);
  padding: 0 var(--inset) clamp(46px, 6vw, 90px);
}
.page-hero .page-hero-inner{
  padding-top: clamp(50px, 9vw, 130px);
}
.page-hero .eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  margin-bottom: 22px;
}
.page-hero .eyebrow::before{
  content:""; width:9px; height:9px; border-radius:50%; background: var(--ink);
}
.page-hero h1{
  font-size: clamp(52px, 9vw, 150px);
  font-weight:500;
  letter-spacing:-0.038em;
  line-height:.97;
  max-width: 12ch;
}
.page-hero .page-hero-sub{
  margin-top: clamp(22px, 3vw, 40px);
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap: 30px;
  flex-wrap:wrap;
}
.page-hero .page-hero-sub p{
  font-size: clamp(18px, 1.7vw, 24px);
  max-width: 52ch;
  letter-spacing:-0.01em;
}

/* generic two-col */
.two-col{
  display:grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(30px, 5vw, 90px);
  align-items:start;
}
.two-col .sticky-label{ position: sticky; top: 40px; }
@media (max-width: 820px){ .two-col{ grid-template-columns: 1fr; } .two-col .sticky-label{ position:static; } }

/* deliverables chips */
.chip-list{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}
.chip-list li{
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 15px;
  font-weight:500;
}

/* media band on service pages */
.media-band{
  display:grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--gap);
  padding: 0 var(--inset);
}
.media-band .hero-media{ height: clamp(300px, 55vh, 560px); }
@media (max-width: 760px){ .media-band{ grid-template-columns:1fr; } }

/* FAQ accordion */
.faq-list{ border-top: 1.5px solid var(--ink); max-width: 980px; }
.faq-item{ border-bottom: 1.5px solid var(--ink); }
.faq-q{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 24px;
  text-align:left;
  padding: clamp(20px, 2.6vw, 32px) 0;
  font-size: clamp(19px, 2.1vw, 28px);
  font-weight:500;
  letter-spacing:-0.02em;
}
.faq-q .faq-icon{
  width: 40px; height: 40px;
  border: 1.5px solid var(--ink);
  border-radius:50%;
  display:grid; place-items:center;
  flex:none;
  transition: transform .35s var(--ease-out), background .35s;
  font-size: 20px;
  font-weight: 400;
}
.faq-item.open .faq-q .faq-icon{
  transform: rotate(45deg);
  background: var(--accent);
}
.faq-a{
  max-height: 0;
  overflow:hidden;
  transition: max-height .45s var(--ease-out);
}
.faq-a p{
  padding: 0 0 28px;
  max-width: 68ch;
  color:#3c3c38;
  font-size: 17px;
}

/* blog cards */
.blog-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.6vw, 36px);
}
.blog-card{
  display:flex;
  flex-direction:column;
  border: 1.5px solid var(--ink);
  background: #fff;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.blog-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 0 -6px var(--accent);
}
.blog-card .blog-media{
  position:relative;
  aspect-ratio: 16/10;
  overflow:hidden;
  border-bottom: 1.5px solid var(--ink);
  background:#191919;
}
.blog-card .blog-body{
  padding: 22px;
  display:flex;
  flex-direction:column;
  gap: 12px;
  flex:1;
}
.blog-card .blog-meta{
  font-size: 12.5px;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#6b6b64;
  display:flex; justify-content:space-between; gap:10px;
}
.blog-card h3{
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight:500;
  letter-spacing:-0.02em;
  line-height:1.2;
}
.blog-card p{ color:#4a4a45; font-size:15.5px; }
.blog-card .blog-read{
  margin-top:auto;
  font-weight:600;
  font-size:14px;
  letter-spacing:.06em;
  text-transform:uppercase;
  display:inline-flex; align-items:center; gap:8px;
}
@media (max-width: 900px){ .blog-grid{ grid-template-columns:1fr; } }

/* contact */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(36px, 6vw, 100px);
}
.contact-aside .big-mail{
  font-size: clamp(24px, 3.2vw, 44px);
  font-weight:500;
  letter-spacing:-0.02em;
  text-decoration:underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
  word-break: break-all;
}
.contact-aside dl{ margin-top: 44px; }
.contact-aside dt{
  font-size:13px; font-weight:600; letter-spacing:.14em; text-transform:uppercase;
  color:#6b6b64; margin-bottom:6px;
}
.contact-aside dd{ margin: 0 0 26px; font-size: 17px; }

.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.form-field{ display:flex; flex-direction:column; gap:8px; }
.form-field.full{ grid-column: 1 / -1; }
.form-field label{
  font-size: 13px;
  font-weight:600;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.form-field input,
.form-field select,
.form-field textarea{
  font: inherit;
  padding: 14px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background:#fff;
  color: var(--ink);
}
.form-field textarea{ min-height: 150px; resize: vertical; }
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible{
  outline: 3px solid var(--accent);
  outline-offset: 1px;
}
.form-submit{
  grid-column: 1 / -1;
  justify-self:start;
  display:inline-flex;
  align-items:center;
  gap: 12px;
  background: var(--ink);
  color:#fff;
  border-radius: var(--radius-pill);
  padding: 16px 32px;
  font-weight:500;
  font-size: 17px;
  transition: background .25s;
}
.form-submit:hover{ background:#000; }
.form-submit .dot{ width:8px; height:8px; border-radius:50%; background: var(--accent); }
.form-note{ grid-column:1/-1; font-size:14px; color:#6b6b64; }
@media (max-width: 860px){
  .contact-grid{ grid-template-columns:1fr; }
  .form-grid{ grid-template-columns:1fr; }
}

/* about page extras */
.value-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.6vw, 36px);
}
.value-card{
  border-top: 1.5px solid var(--ink);
  padding-top: 20px;
}
.value-card h3{
  font-size: clamp(20px, 2vw, 27px);
  font-weight:500;
  letter-spacing:-0.02em;
  margin-bottom: 12px;
  display:flex; align-items:center; gap:10px;
}
.value-card h3::before{
  content:""; width: 10px; height:10px; border-radius:50%;
  background: var(--accent); flex:none;
}
.value-card p{ color:#4a4a45; font-size:16px; }
@media (max-width: 860px){ .value-grid{ grid-template-columns:1fr; } }

/* keyboard focus */
a:focus-visible, button:focus-visible{
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   REEL GRID — YouTube gallery (UGC Videos page)
   Click-to-play facade: posters load as images, the iframe is
   only created on click so eight videos cost one page-weight.
   ============================================================ */

.reel-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.6vw, 22px);
}
@media (max-width: 1100px){ .reel-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px){  .reel-grid{ grid-template-columns: repeat(2, 1fr); } }

.reel{ margin:0; display:flex; flex-direction:column; gap:14px; }

.reel-media{
  position:relative;
  display:block;
  width:100%;
  aspect-ratio: 9 / 16;
  overflow:hidden;
  border-radius: 14px;
  background:#151515;
  padding:0;
  border:none;
  cursor:pointer;
}
.reel-bg,
.reel-poster{
  position:absolute; inset:0;
  width:100%; height:100%;
}
/* blurred backdrop keeps 16:9 thumbnails from cropping badly in a 9:16 frame */
.reel-bg{
  object-fit: cover;
  filter: blur(26px) brightness(.5);
  transform: scale(1.2);
}
.reel-poster{
  object-fit: contain;
  transition: transform .7s var(--ease-out);
}
.reel-media:hover .reel-poster{ transform: scale(1.04); }

.reel-play{
  position:absolute; left:50%; top:50%;
  transform: translate(-50%,-50%);
  width: clamp(48px, 4vw, 64px);
  aspect-ratio: 1;
  border-radius:50%;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  display:grid; place-items:center;
  box-shadow: 0 12px 34px rgba(0,0,0,.34);
  transition: transform .35s var(--ease-out), background .35s var(--ease-out);
}
.reel-play svg{ margin-left: 3px; width: 34%; height:auto; }
.reel-media:hover .reel-play{
  transform: translate(-50%,-50%) scale(1.12);
  background: var(--accent);
}

.reel-label{
  position:absolute; left:12px; bottom:12px;
  font-size:11px; font-weight:600; letter-spacing:.12em; text-transform:uppercase;
  color:#fff;
  background: rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding:6px 11px;
  border-radius: var(--radius-pill);
}

.reel-title{
  font-size: 16px;
  font-weight:500;
  letter-spacing:-.01em;
  line-height:1.3;
}

.reel-media iframe{
  position:absolute; inset:0;
  width:100%; height:100%;
  border:0;
}

/* card with no id yet — visible, obvious, not broken-looking */
.reel-media.is-empty{
  background: var(--mist);
  border: 1.5px dashed #b9b9b0;
  cursor: default;
}
.reel-media.is-empty .reel-play,
.reel-media.is-empty .reel-bg,
.reel-media.is-empty .reel-poster{ display:none; }
.reel-empty-note{
  position:absolute; inset:0;
  display:grid; place-items:center;
  padding: 18px;
  text-align:center;
  font-size:12.5px;
  font-weight:600;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#86867d;
}

.reel-note{
  margin: clamp(30px, 4vw, 52px) auto 0;
  max-width: 64ch;
  text-align:center;
  color:#6b6b64;
  font-size:15px;
}

.reel-media:focus-visible{
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce){
  .reel-poster, .reel-play{ transition:none; }
  .reel-media:hover .reel-poster{ transform:none; }
}

/* ============================================================
   SITE GRID — portfolio cards (Websites page)
   ============================================================ */

.site-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.4vw, 34px);
}

.site-card{
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1.5px solid var(--ink);
  overflow:hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.site-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 0 -4px var(--accent);
}

.site-media{
  position:relative;
  display:block;
  aspect-ratio: 16 / 10;
  overflow:hidden;
  background:#191919;
  border-bottom:1.5px solid var(--ink);
}
.site-media > *{ transition: transform .8s var(--ease-out); }
.site-card:hover .site-media > *{ transform: scale(1.04); }

.site-body{
  padding: clamp(20px, 2.2vw, 30px);
  display:flex;
  flex-direction:column;
  gap:12px;
  flex:1;
}
.site-domain{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight:700;
  letter-spacing:-0.005em;
  text-transform:uppercase;
}
.site-domain .arrow{
  width:34px; height:34px;
  border:1.5px solid var(--ink);
  border-radius:50%;
  display:grid; place-items:center;
  flex:none;
  transition: background .3s var(--ease-out), transform .3s var(--ease-out);
}
.site-card:hover .site-domain .arrow{
  background: var(--accent);
  transform: rotate(45deg);
}
.site-body p{ color:#4a4a45; font-size:16px; }

/* final card runs full width so the row doesn't end on a gap */
.site-card.is-wide{ grid-column: 1 / -1; flex-direction: row; }
.site-card.is-wide .site-media{
  flex: 1 1 58%;
  border-bottom:none;
  border-right:1.5px solid var(--ink);
}
.site-card.is-wide .site-body{ flex: 1 1 42%; justify-content:center; }

@media (max-width: 780px){
  .site-grid{ grid-template-columns: 1fr; }
  .site-card.is-wide{ flex-direction: column; }
  .site-card.is-wide .site-media{
    border-right:none;
    border-bottom:1.5px solid var(--ink);
  }
}
@media (prefers-reduced-motion: reduce){
  .site-card, .site-media > *{ transition:none; }
  .site-card:hover{ transform:none; }
  .site-card:hover .site-media > *{ transform:none; }
}

/* ============================================================
   DROPPED-IN MEDIA — plain slots
   .slide-layer children are positioned above; these are the
   non-carousel slots (service media bands, work cards). Without
   this the loaded video renders at intrinsic size and the .ph
   placeholder sits on top of it.
   ============================================================ */

.hero-media > video,
.hero-media > img,
.site-media > video,
.site-media > img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  z-index:2;
}

/* once real media has loaded, drop the placeholder art and its tag */
.has-media > .ph{ display:none; }

/* Slots that must not crop their media — logo animations, full artwork.
   The black ground makes the letterboxing read as part of the piece. */
.hero-media.is-contain,
.site-media.is-contain{ background:#000; }
.hero-media.is-contain > video,
.hero-media.is-contain > img,
.site-media.is-contain > video,
.site-media.is-contain > img{ object-fit: contain; }

/* ============================================================
   SHOWREEL — one wide 16:9 video, ArchViz page
   Reuses the .reel-media click-to-play facade at landscape ratio.
   ============================================================ */

.showreel{ padding: 0 var(--inset); }
.showreel .reel-media{
  aspect-ratio: 16 / 9;
  border-radius: 0;
  width: 100%;
}
.showreel .reel-play{ width: clamp(64px, 6vw, 96px); }
.showreel .reel-label{
  left: auto; right: 16px; bottom: 16px;
  font-size: 12px;
}
.showreel-caption{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap: 20px;
  flex-wrap:wrap;
  padding-top: 16px;
  font-size: 15px;
  color:#6b6b64;
}
.showreel-caption strong{
  color: var(--ink);
  font-weight:600;
  font-size: 16px;
}

/* long-form editorial copy */
.prose{ max-width: 68ch; }
.prose p{ margin-bottom: 20px; color:#3c3c38; }
.prose p:last-child{ margin-bottom:0; }
.prose h3{
  font-size: clamp(21px, 2vw, 28px);
  font-weight:500;
  letter-spacing:-0.02em;
  margin: 40px 0 14px;
}
.prose h3:first-child{ margin-top:0; }

/* chip list on a dark section */
.chip-list.on-dark li{
  border-color: rgba(250,250,247,.35);
  color: var(--paper);
}

/* ============================================================
   ARTICLE — long-form blog post
   ============================================================ */

.article{
  padding: clamp(50px, 7vw, 96px) var(--inset);
}
.article-body{
  max-width: 72ch;
  margin: 0 auto;
}
.article-body > * + *{ margin-top: 22px; }

.article-body p{
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.62;
  color: #2e2e2b;
}
.article-body h2{
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-top: clamp(48px, 5vw, 76px);
}
.article-body h3{
  font-size: clamp(19px, 1.9vw, 25px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: clamp(32px, 3.4vw, 48px);
}
.article-body h2 + p,
.article-body h3 + p{ margin-top: 14px; }

.article-body ul{ margin-top: 16px; }
.article-body li{
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.55;
  color: #2e2e2b;
}
.article-body li::before{
  content:"";
  position:absolute;
  left: 4px; top: .62em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.article-body strong{ font-weight: 600; color: var(--ink); }
.article-body a{
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--accent);
}

/* article meta line under the title */
.article-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap: 10px 18px;
  margin-top: clamp(22px, 3vw, 34px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.article-meta .sep{ opacity:.4; }

/* a number worth stopping on */
.stat-callout{
  border-left: 4px solid var(--accent);
  padding: 4px 0 4px 24px;
  margin-top: 30px !important;
}
.stat-callout strong{
  display:block;
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.stat-callout span{
  display:block;
  margin-top: 10px;
  font-size: 16px;
  color: #55554f;
  max-width: 46ch;
}

/* verdict table */
.compare{
  width: 100%;
  border-collapse: collapse;
  margin-top: 26px;
  font-size: 16px;
}
.compare th,
.compare td{
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1.5px solid var(--ink);
  vertical-align: top;
}
.compare th{
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom-width: 2px;
}
.compare tbody tr:last-child td{ border-bottom: none; }
.compare td:first-child{ font-weight: 500; }
.compare .pick{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 600;
  font-size: 14px;
}
.compare .pick::before{
  content:"";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--tone, var(--accent));
  flex: none;
}
.table-scroll{ overflow-x: auto; }

/* end-of-article prompt */
.article-cta{
  max-width: 72ch;
  margin: clamp(50px, 6vw, 80px) auto 0;
  border: 1.5px solid var(--ink);
  padding: clamp(26px, 3.4vw, 44px);
}
.article-cta h2{
  font-size: clamp(23px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.article-cta p{ color:#4a4a45; margin-bottom: 24px; max-width: 56ch; }
.article-cta .pill{ border-color: var(--ink); color: var(--ink); }
.article-cta .pill .dot{ background: var(--accent); }
.article-cta .pill:hover{ background: var(--ink); color: #fff; }

/* back link */
.article-back{
  display:inline-flex;
  align-items:center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.article-back:hover{ text-decoration: underline; text-underline-offset: 4px; }

/* ============================================================
   CHECKLIST — tickable master list (checklist articles)
   State persists per visitor in localStorage.
   ============================================================ */

.checklist{
  margin-top: 28px;
  border-top: 1.5px solid var(--ink);
}
.checklist li{
  padding: 0;
  margin: 0;
  border-bottom: 1.5px solid var(--ink);
}
.checklist li::before{ display:none; }   /* no accent dot on this list */

.checklist label{
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 4px;
  cursor: pointer;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.4;
  transition: padding-left .25s var(--ease-out);
}
.checklist label:hover{ padding-left: 12px; }

.checklist input{
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.checklist .box{
  width: 24px; height: 24px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex: none;
  transition: background .2s var(--ease-out), border-color .2s;
}
.checklist .box svg{
  width: 14px; height: 14px;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
}
.checklist input:checked + .box{
  background: var(--accent);
  border-color: var(--accent);
}
.checklist input:checked + .box svg{ opacity: 1; transform: scale(1); }
.checklist input:checked ~ .txt{
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  color: #8a8a82;
}
.checklist input:focus-visible + .box{
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.checklist-progress{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6b6b64;
}
.checklist-progress button{
  font: inherit;
  color: #6b6b64;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.checklist-progress button:hover{ color: var(--ink); }

/* local-area terms rendered as chips inside an article */
.article-body .chip-list{ margin-top: 18px; }
.article-body .chip-list li{
  padding-left: 18px;
  margin-bottom: 0;
}
.article-body .chip-list li::before{ left: 14px; top: 50%; transform: translateY(-50%); }

/* ============================================================
   CONTRAST PAIR — before / after inside an article
   ============================================================ */

.contrast{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 30px;
  border: 1.5px solid var(--ink);
}
.contrast > div{ padding: clamp(20px, 2.4vw, 30px); }
.contrast > div + div{ border-left: 1.5px solid var(--ink); }
.contrast .label{
  font-size: 12px;
  font-weight:600;
  letter-spacing:.13em;
  text-transform:uppercase;
  color:#6b6b64;
  margin-bottom: 12px;
}
.contrast .figure{
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight:500;
  letter-spacing:-0.03em;
  line-height:1;
  margin-bottom: 10px;
}
.contrast .after .figure{ color: var(--accent); }
.contrast p{ font-size: 15.5px !important; color:#55554f; margin:0 !important; }
@media (max-width: 640px){
  .contrast{ grid-template-columns: 1fr; }
  .contrast > div + div{ border-left:none; border-top: 1.5px solid var(--ink); }
}
