@import url('https://fonts.googleapis.com/css2?family=Anton&family=Archivo:wght@400;500;600;700&display=swap');

/* ============================================================
   JT Painting & Remodeling LLC
   Strictly two-tone: brand black + neutral plaster white.
   All colour in the page comes from the work photography.
   ============================================================ */

/* Registered so the load sweep can animate a percentage. Must inherit, or the
   seam, knob and clipped layer (all children) never receive the value. */
@property --pos{ syntax:'<percentage>'; inherits:true; initial-value:50%; }

:root{
  --black:      #000000;
  --graphite:   #1A1A1A;
  --iron:       #333333;
  --steel:      #6F6F6F;
  --line:       #D6D6D6;
  --line-dark:  rgba(255,255,255,0.16);
  --plaster:    #F1F1F1;
  --white:      #FFFFFF;

  --display: 'Anton', Impact, sans-serif;
  --text: 'Archivo', system-ui, sans-serif;

  --page: 1280px;
  --gutter: 28px;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--plaster);
  color:var(--black);
  font-family:var(--text);
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ display:block; max-width:100%; }
figure{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }
a{ color:inherit; text-decoration:none; }

.wrap{
  max-width:var(--page);
  margin:0 auto;
  padding:0 var(--gutter);
}

/* ---------- Display type ---------- */
h1,h2,h3{
  font-family:var(--display);
  font-weight:400;
  text-transform:uppercase;
  letter-spacing:0.005em;
  line-height:0.94;
  margin:0;
}
h1{ font-size:clamp(2.5rem, 5.6vw, 4.5rem); }
h2{ font-size:clamp(2rem, 4.2vw, 3.4rem); }
h3{ font-size:clamp(1.3rem, 2.2vw, 1.75rem); }

.lede{
  font-size:clamp(1.05rem, 1.5vw, 1.2rem);
  line-height:1.55;
  color:var(--iron);
  max-width:56ch;
}

/* ---------- Focus ---------- */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline:2px solid var(--black);
  outline-offset:3px;
}
.hero a:focus-visible, .hero button:focus-visible,
.pagehead a:focus-visible, .crew a:focus-visible,
.foot a:focus-visible, .reach a:focus-visible,
.masthead a:focus-visible, .masthead button:focus-visible{
  outline-color:var(--white);
}
.skiplink{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--black); color:var(--white); padding:12px 18px; font-weight:600;
}
.skiplink:focus{ left:12px; top:12px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  font-family:var(--text); font-size:0.95rem; font-weight:700;
  letter-spacing:0.01em;
  padding:15px 28px; border:1.5px solid var(--black);
  background:var(--black); color:var(--white);
  cursor:pointer; transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover{ background:var(--white); color:var(--black); }
.btn-ghost{ background:transparent; color:var(--black); }
.btn-ghost:hover{ background:var(--black); color:var(--white); }
.btn-light{ background:var(--white); color:var(--black); border-color:var(--white); }
.btn-light:hover{ background:transparent; color:var(--white); }
.btn-outline-light{ background:transparent; color:var(--white); border-color:var(--line-dark); }
.btn-outline-light:hover{ background:var(--white); color:var(--black); border-color:var(--white); }
.btn-wide{ width:100%; }

/* ---------- Text links ---------- */
.tlink{
  font-weight:600; font-size:0.95rem;
  border-bottom:1.5px solid var(--black);
  padding-bottom:2px;
  transition:opacity .15s ease;
}
.tlink:hover{ opacity:0.55; }

/* ---------- Header ---------- */
.masthead{
  position:sticky; top:0; z-index:100;
  background:var(--black);
  border-bottom:1px solid var(--line-dark);
}
.masthead-row{
  display:flex; align-items:center; justify-content:space-between;
  gap:20px; padding:12px var(--gutter);
  max-width:var(--page); margin:0 auto;
}
/* The logo is a tall badge; at nav height its wordmark is unreadable, so the
   header uses the monogram with the name typeset beside it. */
.brand{ display:flex; align-items:center; gap:13px; flex:none; }
.brand img{ height:42px; width:auto; }
.brand-name{ display:flex; flex-direction:column; line-height:1; }
.brand-name b{
  font-family:var(--display); font-weight:400; font-size:1.12rem;
  text-transform:uppercase; letter-spacing:0.015em; color:var(--white);
}
.brand-name span{
  font-size:0.6rem; font-weight:600; letter-spacing:0.15em;
  text-transform:uppercase; color:rgba(255,255,255,0.55); margin-top:4px;
}
.navset{ display:flex; align-items:center; gap:34px; }
.navlinks{ display:flex; align-items:center; gap:28px; }
.navlinks a{
  color:var(--white); font-size:0.95rem; font-weight:500;
  padding:8px 0; position:relative;
}
.navlinks a::after{
  content:""; position:absolute; left:0; right:0; bottom:2px; height:1.5px;
  background:var(--white); transform:scaleX(0); transform-origin:left;
  transition:transform .18s ease;
}
.navlinks a:hover::after{ transform:scaleX(1); }
.navlinks a[aria-current="page"]{ font-weight:700; }
.navlinks a[aria-current="page"]::after{ transform:scaleX(1); }
.navtools{ display:flex; align-items:center; gap:16px; }
.navphone{
  color:var(--white); font-weight:700; font-size:0.95rem; white-space:nowrap;
  display:none;
}
.navtoggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:44px; height:44px; background:none; border:none; cursor:pointer; flex:none;
}
.navtoggle span{ display:block; width:24px; height:2px; background:var(--white); margin:0 auto; }

.nav-call{ display:none; }

@media (min-width:1080px){ .navphone{ display:inline-block; } }
@media (max-width:1010px){
  .navset{ gap:14px; }
  .navlinks{
    position:absolute; top:100%; left:0; right:0;
    flex-direction:column; align-items:stretch; gap:0;
    /* lifted off pure black so the panel reads as a layer over the hero */
    background:#242424;
    border-bottom:1px solid rgba(255,255,255,0.3);
    max-height:0; overflow:hidden; transition:max-height .25s ease;
  }
  .navlinks.open{ max-height:460px; }
  /* block-level, or the vertical padding collapses and the border draws as fragments */
  .navlinks a{ display:block; padding:16px var(--gutter); border-top:1px solid var(--line-dark); }
  .navlinks a::after{ display:none; }
  .navlinks li:first-child a{ border-top:none; }
  .nav-call{ display:block; }
  .nav-call a{ font-weight:700; }
  .navtoggle{ display:flex; }
}
@media (max-width:620px){
  /* the hero carries the estimate CTA on small screens, so the header stays uncluttered */
  .navtools .btn{ display:none; }
  .brand img{ height:36px; }
  .brand-name b{ font-size:1rem; }
  .brand-name span{ font-size:0.55rem; letter-spacing:0.12em; }
}
@media (max-width:560px){
  .cred{ padding:26px var(--gutter); }
  .cred b{ font-size:1.55rem; }
}
@media (max-width:340px){
  .brand-name{ display:none; }
}

/* ---------- Hero ---------- */
.hero{ background:var(--black); color:var(--white); position:relative; }
.hero::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  opacity:0.30; background-image:var(--grain);
}
.hero-grid{
  position:relative; z-index:1;
  max-width:var(--page); margin:0 auto;
  display:grid; grid-template-columns:1fr 1.15fr; align-items:stretch;
}
.hero-copy{
  padding:76px var(--gutter);
  display:flex; flex-direction:column; justify-content:center;
}
.hero h1{ color:var(--white); max-width:15ch; }
.hero-sub{
  margin:26px 0 0; font-size:1.1rem; line-height:1.55;
  color:rgba(255,255,255,0.72); max-width:46ch;
}
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-top:34px; }
.hero-cred{
  margin:40px 0 0; padding-top:22px; border-top:1px solid var(--line-dark);
  font-size:0.9rem; color:rgba(255,255,255,0.62); max-width:44ch;
}
.hero-media{ position:relative; min-height:440px; border-left:1px solid var(--line-dark); }
.hero-media .ba{ position:absolute; inset:0; }

@media (max-width:900px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-copy{ padding:58px var(--gutter) 44px; }
  .hero-media{ border-left:none; border-top:1px solid var(--line-dark); min-height:0; aspect-ratio:4/3; }
}

/* ---------- Before / after ---------- */
.ba{
  position:relative; overflow:hidden; --pos:50%;
  background:var(--graphite); touch-action:pan-y;
}
.ba-fixed{ aspect-ratio:16/10; }
.ba-layer{ position:absolute; inset:0; }
.ba-layer img{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:center;
}
.ba-first{ clip-path:inset(0 calc(100% - var(--pos)) 0 0); }
.ba-mark{
  position:absolute; bottom:18px; z-index:3;
  font-size:0.72rem; font-weight:700; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--white); background:rgba(0,0,0,0.72);
  padding:6px 12px; pointer-events:none;
}
.ba-mark.is-before{ left:18px; }
.ba-mark.is-after{ right:18px; }
.ba-seam{
  position:absolute; top:0; bottom:0; left:var(--pos); width:2px; z-index:4;
  background:var(--white); transform:translateX(-1px); pointer-events:none;
}
.ba-knob{
  position:absolute; top:50%; left:var(--pos); z-index:5;
  width:52px; height:52px; transform:translate(-50%,-50%);
  background:var(--white); pointer-events:none;
  display:flex; align-items:center; justify-content:center;
}
.ba-range{
  position:absolute; inset:0; z-index:6;
  width:100%; height:100%; margin:0; padding:0;
  appearance:none; -webkit-appearance:none; background:transparent; cursor:ew-resize;
}
.ba-range::-webkit-slider-runnable-track{ height:100%; background:transparent; }
.ba-range::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none;
  width:56px; height:100%; background:transparent; cursor:ew-resize;
}
.ba-range::-moz-range-track{ height:100%; background:transparent; border:none; }
.ba-range::-moz-range-thumb{ width:56px; height:100%; background:transparent; border:none; cursor:ew-resize; }

/* single orchestrated load moment: the seam sweeps, teaching the drag, then rests */
.ba[data-demo="1"]{ animation:baDemo 2.2s cubic-bezier(.4,0,.2,1) .4s 1 both; }
@keyframes baDemo{
  0%{ --pos:96%; }
  55%{ --pos:20%; }
  100%{ --pos:50%; }
}
@media (prefers-reduced-motion:reduce){
  .ba[data-demo="1"]{ animation:none; }
}

/* ---------- Credentials band ---------- */
.creds{ background:var(--white); border-bottom:1px solid var(--line); }
.creds-row{ display:grid; grid-template-columns:repeat(4,1fr); }
.cred{ padding:34px var(--gutter); border-left:1px solid var(--line); }
.cred:first-child{ border-left:none; }
.cred b{
  display:block; font-family:var(--display); font-weight:400;
  font-size:2rem; line-height:1; text-transform:uppercase;
}
.cred span{ display:block; margin-top:8px; font-size:0.9rem; color:var(--steel); }
@media (max-width:820px){
  .creds-row{ grid-template-columns:repeat(2,1fr); }
  .cred:nth-child(3){ border-left:none; }
  .cred:nth-child(n+3){ border-top:1px solid var(--line); }
}

/* ---------- Surfaces marquee ---------- */
.surfaces{ background:var(--black); color:var(--white); overflow:hidden; padding:18px 0; }
.marquee{ display:flex; width:max-content; animation:marquee 40s linear infinite; }
.marquee span{
  font-family:var(--display); font-size:1.1rem; text-transform:uppercase;
  letter-spacing:0.03em; padding:0 20px; white-space:nowrap;
  color:rgba(255,255,255,0.88);
}
.marquee span::after{ content:"+"; margin-left:20px; color:rgba(255,255,255,0.34); }
.surfaces:hover .marquee{ animation-play-state:paused; }
@keyframes marquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
@media (prefers-reduced-motion:reduce){
  .marquee{ animation:none; flex-wrap:wrap; width:auto; }
}

/* ---------- Generic blocks ---------- */
.block{ padding:96px 0; }
.block-white{ background:var(--white); }
.block-head{ max-width:48ch; margin-bottom:52px; }
.block-head p{ margin:18px 0 0; color:var(--steel); font-size:1.05rem; }
@media (max-width:700px){
  .block{ padding:64px 0; }
  .block-head{ margin-bottom:36px; }
}

/* ---------- Services index ---------- */
.svc-list{ border-top:1px solid var(--line); }
.svc{
  display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1.5fr) auto;
  gap:28px; align-items:baseline;
  padding:30px 0; border-bottom:1px solid var(--line);
  transition:padding-left .18s ease;
}
.svc:hover{ padding-left:12px; }
.svc h3{ margin:0; }
.svc p{ margin:0; color:var(--steel); font-size:1rem; }
.svc .tlink{ justify-self:end; white-space:nowrap; }
@media (max-width:860px){
  .svc{ grid-template-columns:1fr; gap:12px; align-items:start; padding:26px 0; }
  .svc .tlink{ justify-self:start; }
  .svc:hover{ padding-left:0; }
}

/* ---------- Service detail rows ---------- */
.detail{
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:56px; align-items:center;
  padding:72px 0; border-bottom:1px solid var(--line);
}
.detail:last-of-type{ border-bottom:none; }
.detail-flip .detail-media{ order:2; }
.detail-flip .detail-body{ order:1; }
.detail-body h2{ margin-bottom:20px; }
.detail-body p{ color:var(--iron); margin:0 0 14px; max-width:52ch; }
.covers{
  margin:24px 0 0; padding-top:20px; border-top:1px solid var(--line);
  display:flex; flex-wrap:wrap; gap:8px 20px;
}
.covers li{ font-size:0.94rem; color:var(--steel); }
.detail-body .btn{ margin-top:28px; }
@media (max-width:860px){
  .detail, .detail-flip{ grid-template-columns:1fr; gap:32px; padding:52px 0; }
  .detail-flip .detail-media, .detail-flip .detail-body{ order:initial; }
}

/* ---------- Text-only service mention (no photo yet) ---------- */
.mention{ padding:56px 0; border-bottom:1px solid var(--line); }
.mention h2{ margin-bottom:16px; }
.mention p{ color:var(--iron); margin:0 0 14px; max-width:62ch; }
.mention .covers{ margin-top:20px; padding-top:0; border-top:none; }

/* ---------- Figures ---------- */
.shot{ position:relative; background:var(--graphite); overflow:hidden; }
.shot img{ width:100%; height:100%; object-fit:cover; display:block; }
.shot-4x3{ aspect-ratio:4/3; }
.shot-16x9{ aspect-ratio:16/9; }

.pending{
  background:var(--white); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  color:var(--steel); font-size:0.9rem; text-align:center; padding:20px;
}

/* ---------- Gallery ---------- */
.gal{ padding:72px 0; border-bottom:1px solid var(--line); }
.gal:last-of-type{ border-bottom:none; }
.gal-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:20px; flex-wrap:wrap; margin-bottom:28px;
}
.gal-head h2{ margin:0; }
.gal-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
@media (max-width:660px){ .gal-grid{ grid-template-columns:1fr; gap:16px; } }

.shot-cap{ background:transparent; }
.shot-cap figcaption{
  margin-top:10px; font-size:0.9rem; color:var(--steel);
}
.shot-cap .shot{ margin:0; }

/* ---------- Crew statement ---------- */
.crew{ background:var(--black); color:var(--white); padding:104px 0; position:relative; }
.crew::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  opacity:0.26; background-image:var(--grain);
}
.crew .wrap{ position:relative; z-index:1; }
.crew h2{ color:var(--white); max-width:20ch; }
.crew p{ color:rgba(255,255,255,0.74); font-size:1.12rem; max-width:56ch; margin:24px 0 0; }
.crew .btn{ margin-top:34px; }
@media (max-width:700px){ .crew{ padding:68px 0; } }

.crew-split .wrap{
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:60px; align-items:center;
}
.crew-split h2{ max-width:none; }
@media (max-width:860px){
  .crew-split .wrap{ grid-template-columns:1fr; gap:36px; }
}

/* ---------- Values ---------- */
.values{ display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid var(--line); }
.value{ padding:34px 30px 34px 0; border-right:1px solid var(--line); }
.value:last-child{ border-right:none; padding-right:0; }
.value:not(:first-child){ padding-left:30px; }
.value h3{ font-size:1.15rem; margin-bottom:10px; }
.value p{ margin:0; color:var(--steel); font-size:0.96rem; }
@media (max-width:820px){
  .values{ grid-template-columns:1fr; }
  .value{ border-right:none; border-bottom:1px solid var(--line); padding:26px 0; }
  .value:not(:first-child){ padding-left:0; }
  .value:last-child{ border-bottom:none; }
}

/* ---------- CTA band ---------- */
.cta{ background:var(--white); border-top:1px solid var(--line); padding:84px 0; }
.cta-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:40px; flex-wrap:wrap;
}
.cta h2{ max-width:22ch; }
.cta p{ margin:16px 0 0; color:var(--steel); max-width:44ch; }
.cta-actions{ display:flex; gap:14px; flex-wrap:wrap; }
@media (max-width:700px){ .cta{ padding:60px 0; } }

/* ---------- Contact ---------- */
.contact-grid{
  display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:56px;
  align-items:start;
}
@media (max-width:860px){ .contact-grid{ grid-template-columns:1fr; gap:40px; } }

.form-shell{ background:var(--white); border:1px solid var(--line); padding:38px; }
.form-shell h2{ font-size:clamp(1.5rem,3vw,2.1rem); }
.form-shell > p{ color:var(--steel); margin:14px 0 28px; }
.field{ display:flex; flex-direction:column; gap:7px; margin-bottom:20px; }
.field label{ font-size:0.9rem; font-weight:600; }
.field input, .field select, .field textarea{
  font-family:var(--text); font-size:1rem; color:var(--black);
  padding:13px 14px; border:1.5px solid var(--line); background:var(--plaster);
}
.field input:focus, .field select:focus, .field textarea:focus{
  border-color:var(--black); background:var(--white); outline:none;
}
.field-pair{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:560px){ .field-pair{ grid-template-columns:1fr; } }
.form-note{ font-size:0.9rem; color:var(--steel); margin:18px 0 0; }
.form-note a{ font-weight:700; border-bottom:1.5px solid var(--black); }
#formstatus{ margin:18px 0 0; font-size:0.95rem; font-weight:600; display:none; }
#formstatus.show{ display:block; }

.reach{ background:var(--black); color:var(--white); padding:38px; }
.reach h2{ color:var(--white); font-size:clamp(1.4rem,2.6vw,1.9rem); margin-bottom:26px; }
.reach dl{ margin:0; }
.reach dt{
  font-size:0.8rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase;
  color:rgba(255,255,255,0.5); margin-top:22px;
}
.reach dt:first-of-type{ margin-top:0; }
.reach dd{ margin:5px 0 0; font-size:1.05rem; }
.reach dd a{ border-bottom:1.5px solid rgba(255,255,255,0.4); }
.reach dd a:hover{ border-bottom-color:var(--white); }
.reach dd small{ display:block; font-size:0.92rem; color:rgba(255,255,255,0.6); margin-top:3px; }

/* ---------- Footer ---------- */
.foot{ background:var(--black); color:rgba(255,255,255,0.68); padding:72px 0 28px; }
.foot-grid{ display:grid; grid-template-columns:1.5fr 1fr 1fr; gap:44px; margin-bottom:52px; }
@media (max-width:760px){ .foot-grid{ grid-template-columns:1fr; gap:34px; } }
.foot-brand img{ height:92px; width:auto; margin-bottom:20px; }
.foot-brand p{ margin:0; max-width:34ch; font-size:0.96rem; }
.foot h4{
  font-family:var(--text); font-size:0.8rem; font-weight:700;
  letter-spacing:0.1em; text-transform:uppercase; color:var(--white); margin:0 0 16px;
}
.foot li{ margin-bottom:11px; font-size:0.96rem; }
.foot a:hover{ color:var(--white); }
.foot-base{
  border-top:1px solid var(--line-dark); padding-top:24px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-size:0.86rem; color:rgba(255,255,255,0.45);
}

/* ---------- Page masthead (sub pages) ---------- */
.pagehead{ background:var(--black); color:var(--white); padding:76px 0 80px; position:relative; }
.pagehead::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  opacity:0.26; background-image:var(--grain);
}
.pagehead .wrap{ position:relative; z-index:1; }
.pagehead h1{ color:var(--white); max-width:20ch; }
.pagehead p{ color:rgba(255,255,255,0.72); font-size:1.1rem; max-width:52ch; margin:22px 0 0; }
@media (max-width:700px){ .pagehead{ padding:52px 0 56px; } }
