/* Location pages: the "what Danny does here" section.
   The job blocks become a two-column list, each paired with its own photo. */
:root{
  --dur-fast:160ms; --dur-base:280ms; --dur-slow:600ms;
  --ease-out:cubic-bezier(.22,1,.36,1);
  --depth-2:0 2px 4px rgba(38,28,16,.06),0 10px 28px rgba(38,28,16,.12);
  --depth-3:0 4px 8px rgba(38,28,16,.07),0 20px 50px rgba(38,28,16,.18);
  --depth-4:0 8px 16px rgba(17,12,6,.12),0 36px 80px rgba(17,12,6,.32);
}

/* heading block, with the opening line pulled up as a lede */
.locx-head{max-width:46rem;margin-bottom:var(--s6)}
.locx-head h2{margin-bottom:var(--s3)}
.locx-head .lede{margin:0;color:var(--mute)}
.locx-head .lede+.lede{margin-top:var(--s3)}
.locx-intro{font-size:1.12rem;line-height:1.6;color:var(--text);margin:var(--s4) 0 0;max-width:60ch}

/* a job: text left, photo right, alternating */
.locx-jobs{display:grid;gap:var(--s5)}
.locx-job{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(1.5rem,4vw,3.5rem);align-items:center}
.locx-job:nth-child(even) .locx-fig{order:-1}
.locx-job-txt>h3{margin:0 0 .6rem;font-size:clamp(1.4rem,2vw,1.8rem);text-transform:uppercase;color:var(--ink)}
.locx-job-txt p{margin:0 0 1rem;font-size:1.05rem;line-height:1.6;color:var(--text)}
.locx-job-txt p:last-child{margin-bottom:0}
.locx-n{display:inline-flex;align-items:center;gap:.6rem;font:700 .78rem/1 var(--cond);text-transform:uppercase;letter-spacing:.14em;color:var(--orange);margin-bottom:.7rem}
.locx-n::before{content:"";width:1.8rem;height:2px;background:var(--orange)}

/* every job photo is the same size, so the rows line up down the page */
.locx-fig{position:relative;margin:0;border-radius:8px;overflow:hidden;aspect-ratio:3/2;box-shadow:var(--depth-3);background:var(--sand)}
.locx-jobs .locx-fig{height:clamp(200px,19vw,268px);aspect-ratio:auto}
.locx-fig img{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(1.05) contrast(1.04);transition:transform 900ms var(--ease-out)}
.locx-fig::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(17,17,17,.07)}
.locx-job:hover .locx-fig img{transform:scale(1.04)}

/* single-photo variant for pages whose section is one block of prose */
.locx-solo{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(1.5rem,4vw,3.5rem);align-items:center}
.locx-solo .locx-fig{aspect-ratio:4/5;max-height:480px}
/* text centred beside the first photo; the second photo spans underneath
   so neither column is left with dead space */
.locx-solo .locx-job-txt{align-self:center}
.locx-solo .locx-fig.locx-solo-extra{grid-column:1 / -1;margin-top:var(--s5);aspect-ratio:21/9;max-height:none}

/* list variants keep their own shape but sit in the text column */
.locx-job-txt .ticks,.locx-job-txt .numlist{margin-bottom:0}
.locx-job-txt .ticks li{padding-left:1.9rem}

/* closing line under the jobs */
.locx-foot{margin:var(--s6) 0 0;padding-top:var(--s4);border-top:1px solid var(--line);font-size:1.05rem;color:var(--text);max-width:62ch}

@media (max-width:860px){
  .locx-job,.locx-solo{grid-template-columns:minmax(0,1fr);gap:var(--s4)}
  .locx-job:nth-child(even) .locx-fig{order:0}
  .locx-fig{aspect-ratio:16/10}
  .locx-solo .locx-fig{aspect-ratio:16/10}
  .locx-jobs{gap:var(--s5)}
}

@media (prefers-reduced-motion:reduce){
  .locx-fig img{transition:none}
}

/* ===== Single-block pages: White Pine, Morristown, Sevierville =====
   The list on each page carries the content, so it gets the weight: cards
   for the job list, numbered steps for the process, a stat pair for prose. */
.locx-solo .locx-job-txt>p:first-child{font-size:1.12rem;line-height:1.6}

/* lead-in line above a list */
.locx-lead{font:700 .8rem/1 var(--cond);text-transform:uppercase;letter-spacing:.14em;color:var(--orange);margin:var(--s4) 0 var(--s2)}

/* White Pine: the three common jobs as cards */
.locx-solo .ticks{display:grid;gap:.6rem;margin:0 0 var(--s4)}
.locx-solo .ticks li{padding:.95rem 1.1rem .95rem 2.6rem;background:#fff;border:1px solid rgba(17,17,17,.08);
  border-radius:8px;box-shadow:var(--depth-2);transition:border-color var(--dur-base) var(--ease-out),transform var(--dur-base) var(--ease-out)}
.locx-solo .ticks li:last-child{border-bottom:1px solid rgba(17,17,17,.08)}
.locx-solo .ticks li::before{left:1.05rem;top:1.05rem}
.locx-solo .ticks li:hover{border-color:rgba(17,17,17,.2);transform:translateX(3px)}

/* Sevierville: the three steps, numbered in orange with a connecting rule */
.locx-solo .numlist{position:relative;margin:0 0 var(--s4)}
.locx-solo .numlist li{padding:.3rem 0 1.5rem 3.4rem;border-bottom:0}
.locx-solo .numlist li:last-child{padding-bottom:0}
.locx-solo .numlist li::before{top:0;width:2.3rem;height:2.3rem;border-radius:50%;display:grid;place-items:center;
  background:var(--orange);color:var(--ink);font:400 1.05rem/1 var(--head);letter-spacing:.02em}
.locx-solo .numlist li:not(:last-child)::after{content:"";position:absolute;left:1.15rem;top:2.5rem;bottom:.4rem;border-left:2px solid var(--line)}

/* the band photo gets a caption strip so it reads as part of the section */
.locx-band{position:relative;grid-column:1 / -1;margin-top:var(--s5);border-radius:8px;overflow:hidden;
  box-shadow:var(--depth-3);isolation:isolate}
.locx-band img{display:block;width:100%;height:clamp(220px,26vw,320px);object-fit:cover;filter:saturate(1.05) contrast(1.04)}
.locx-band figcaption{position:absolute;left:0;right:0;bottom:0;padding:1.5rem 1.6rem 1.2rem;color:#fff;
  background:linear-gradient(0deg,rgba(17,17,17,.92) 0%,rgba(17,17,17,.55) 55%,transparent 100%);
  font:600 clamp(1.05rem,1.6vw,1.3rem)/1.35 var(--cond);letter-spacing:.02em}
.locx-band figcaption b{display:block;font:700 .78rem/1 var(--cond);text-transform:uppercase;letter-spacing:.14em;color:var(--orange);margin-bottom:.45rem}

@media (max-width:860px){
  .locx-band img{height:200px}
  .locx-band figcaption{padding:1.1rem 1.1rem .9rem}
}

/* Morristown: the opening line carries the section, so it leads at display size */
.locx-pull{font:400 clamp(1.5rem,2.4vw,2rem)/1.22 var(--head);text-transform:uppercase;letter-spacing:.01em;
  color:var(--ink);margin:0 0 var(--s4);padding-left:1.1rem;border-left:3px solid var(--orange)}
.locx-solo .locx-job-txt>.locx-pull+p{font-size:1.08rem}

/* a single landscape photo beside the text (no band photo under it) */
.locx-solo-wide .locx-fig{aspect-ratio:3/2;max-height:none}

/* on the one-photo pages the heading joins the left column, so all the text
   lines up and the photo keeps the right side to itself. The heading and body
   are one continuous block: the grid rows must not be stretched apart to match
   the photo, or a gap opens between them. */
.locx-solo-wide-sec .locx-head{max-width:none;margin-bottom:0}
.locx-solo-wide-sec .locx-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  grid-template-rows:auto auto;gap:0 clamp(1.5rem,4vw,3.5rem);align-content:center}
.locx-solo-wide-sec .locx-wrap>.locx-head{grid-column:1;grid-row:1;align-self:end}
.locx-solo-wide-sec .locx-wrap>.locx-job-txt{grid-column:1;grid-row:2;align-self:start;margin-top:var(--s4)}
.locx-solo-wide-sec .locx-wrap>.locx-fig{grid-column:2;grid-row:1 / span 2;align-self:center}
@media (max-width:860px){
  .locx-solo-wide-sec .locx-wrap{grid-template-columns:minmax(0,1fr);gap:0}
  .locx-solo-wide-sec .locx-wrap>.locx-head{grid-row:auto;align-self:auto}
  .locx-solo-wide-sec .locx-wrap>.locx-job-txt{grid-row:auto}
  .locx-solo-wide-sec .locx-wrap>.locx-fig{grid-column:1;grid-row:auto;margin-top:var(--s4)}
}
