/* Services: "From raw land to a finished street."
   The shared film hero, then the sequence: a sticky standard drawing of a street in section
   that gains one layer per service beside eight chapters, then rentals as its own dark board.
   Only the drawing moves on scroll; media loops come from the shared kit (one plays at a time).
   Type, spacing and control sizes come from the E shared scale in design.css; the tokens below are
   only for things this page alone has: the drawing and its legend, the media ratio. */
:root{
  --svc-ink-mute: #10274273;         /* drawing only (dashed and hatched lines); too faint for text */
  --svc-rail: minmax(380px, 1fr);
  --svc-body: minmax(0, 1.22fr);
  --svc-media: 16 / 9;                 /* every chapter's photo, gallery or film: one height per width */
  /* the drawing board and the drawing: one stroke weight, drawn on as each layer arrives */
  --svc-grid: #54779a0b;
  --svc-grid-size: 48px;               /* the drawing board grid */
  --svc-stroke: 1.5px;
  --svc-dash: 4 5;
  --svc-draw: 1100ms;
  --svc-fade: 160ms;
  --svc-key: 10.5px;
  --svc-key-d: 24px;
  --svc-dur: 520ms;
  --svc-chev: 10px;
  --svc-chev-w: 2px;
}

/* ---------- display face: page title and section titles (Barlow Condensed covers letters only) ---------- */
.svc h1,.svc h2{ font-family:var(--display); font-weight:500; line-height:var(--lh-display); letter-spacing:var(--ls-display); text-transform:uppercase; text-wrap:balance; }
.svc h1{ font-size:var(--fs-display); }
.svc h2{ font-size:var(--fs-h2); margin:0; }
/* text links: the underline stays on the words, the tap area grows to --hit */
.svc .source{ position:relative; }
.svc .source::after{ content:""; position:absolute; left:0; right:0; top:calc(50% - var(--hit) / 2); bottom:calc(50% - var(--hit) / 2); }

/* ---------- opening: the shared film hero (pages.css); the dozer cab and blade stay in frame ---------- */
.svc .fhero{ --fhero-focus:50% 100%; --fhero-measure:8.6em; }

/* ---------- the sequence ---------- */
.seq{ display:grid; grid-template-columns:var(--svc-rail) var(--svc-body); gap:var(--grid-gap); padding:0 var(--pad);
  background-color:var(--mist);
  background-image:linear-gradient(var(--svc-grid) 1px, transparent 1px), linear-gradient(90deg, var(--svc-grid) 1px, transparent 1px);
  background-size:var(--svc-grid-size) var(--svc-grid-size); }
.seq-rail{ min-width:0; }
.seq-rail__pin{ position:sticky; top:var(--space-6); padding-top:var(--section-y); }

/* the standard drawing: ink lines of one weight; the current layer turns blue; utilities run as the three lanes */
.stack{ display:block; width:100%; height:auto; overflow:visible; }
.stack .ly{ --ly-ink:var(--ink); opacity:0; transition:opacity var(--svc-fade) linear; }
.stack .ly.is-in{ opacity:1; }
.stack .ly.is-now{ --ly-ink:var(--mark-blue); }
.stack .ly--base.is-gone{ opacity:0; }
.stack path,.stack circle{ fill:none; stroke:var(--ly-ink); stroke-width:var(--svc-stroke); stroke-linecap:round; stroke-linejoin:round; }
.stack .so{ fill:var(--mist); }
.stack .dr{ stroke-dasharray:1 1; stroke-dashoffset:1; transition:stroke-dashoffset var(--svc-draw) var(--ease); }
.stack .ly.is-in .dr{ stroke-dashoffset:0; }
.stack .dash{ stroke:var(--svc-ink-mute); stroke-dasharray:var(--svc-dash); }
.stack .hatch{ stroke:var(--svc-ink-mute); }
.stack .ln1{ stroke:var(--lane-1); }
.stack .ln2{ stroke:var(--lane-2); }
.stack .ln3{ stroke:var(--lane-3); }
.stack .key__c{ fill:var(--mist); }
.stack .is-now .key__c{ fill:var(--mark-blue); }
.stack .key__t{ font:600 var(--svc-key)/1 var(--body); fill:var(--ly-ink); text-anchor:middle; dominant-baseline:central; }
.stack .is-now .key__t{ fill:white; }
.stack .key__c--lg{ display:none; }
/* the same drawing, complete and still, opens the chapters on narrow screens */
.stack--key{ display:none; }
.stack--key .ly{ opacity:1; }
.stack--key .ly--base{ opacity:0; }
.stack--key .dr{ stroke-dashoffset:0; transition:none; }

/* keyed notes: the chapter list, numbered like the drawing */
.seq-nav{ list-style:none; margin:var(--space-5) 0 0; padding:0; border-top:1px solid var(--line); }
.seq-nav a{ display:grid; grid-template-columns:var(--svc-key-d) minmax(0,1fr); align-items:center; gap:var(--space-3); min-height:var(--hit);
  border-bottom:1px solid var(--line); color:var(--ink-2); font-weight:500; transition:color var(--svc-dur) var(--ease); }
.seq-nav__n{ display:grid; place-items:center; width:var(--svc-key-d); height:var(--svc-key-d); border:var(--svc-stroke) solid currentColor; border-radius:50%;
  font-size:var(--fs-label); font-weight:600; font-variant-numeric:tabular-nums; transition:background-color var(--svc-dur) var(--ease), color var(--svc-dur) var(--ease); }
.seq-nav a.is-done{ color:var(--ink); }
.seq-nav a[aria-current]{ color:var(--deep-blue); font-weight:600; }
.seq-nav a[aria-current] .seq-nav__n{ background:var(--mark-blue); border-color:var(--mark-blue); color:white; }
.seq-nav a:hover .seq-nav__t{ text-decoration:underline; text-underline-offset:4px; }

/* ---------- chapters: media, then number, title, lead and scope beside one figure and its jobs ---------- */
.seq-chapters{ min-width:0; }
.ch{ padding-block:var(--space-8); border-bottom:1px solid var(--line); }   /* chapters are parts of one section: a smaller gap than between sections */
.ch:first-child{ padding-top:var(--section-y); }
/* chapters 6 to 8 are kinds of work rather than steps: set beside their media, so they read as one shorter group */
.ch--compact{ display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:var(--grid-gap); align-items:start; }
.ch--compact .ch__copy{ grid-template-columns:1fr; gap:var(--space-5); margin-top:0; }
.ch--compact .ch__proof{ align-self:start; border-left:0; padding-left:0; border-top:1px solid var(--line); padding-top:var(--space-4); }   /* the first chapter starts level with the drawing */
.ch:last-child{ border-bottom:0; }
.ch__media{ margin:0; }
.loop.ch__media{ --loop-ratio:var(--svc-media); }

.ch__copy{ display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); gap:var(--grid-gap); margin-top:var(--space-5); }
.ch__num{ font:500 1.05rem/1 var(--num-face); letter-spacing:.05em; color:var(--mark-blue); font-variant-numeric:tabular-nums; }
.svc .ch h2{ margin:var(--space-3) 0 var(--space-4); }
.ch__lead{ font-size:var(--fs-lead); line-height:var(--lh-lead); max-width:34ch; }
.ch__scope{ list-style:none; margin:var(--space-5) 0 0; padding:0; max-width:40ch; }
.ch__scope li{ padding:var(--space-1) 0; border-top:1px solid var(--line); }
.ch__proof{ align-self:end; border-left:1px solid var(--line); padding-left:var(--space-5); }
.ch__fig{ display:flex; flex-wrap:wrap; align-items:baseline; gap:var(--space-1) var(--space-3); }
.ch__fig b{ font:500 var(--fs-figure)/1 var(--num-face); letter-spacing:.01em; font-variant-numeric:tabular-nums; color:var(--deep-blue); }
.ch__fig span{ max-width:28ch; font-weight:600; line-height:1.35; }
.ch__rec{ list-style:none; margin:var(--space-3) 0 0; padding:0; display:flex; flex-wrap:wrap; column-gap:var(--space-4); }
.ch__rec a{ display:inline-flex; align-items:center; min-height:var(--hit); font-size:var(--fs-small); font-weight:500;
  text-decoration:underline; text-decoration-color:var(--mid-blue); text-underline-offset:5px; }
.ch__rec a:hover{ color:var(--mark-blue); text-decoration-color:var(--mark-blue); }

/* ---------- part II narrative break between steps 01-05 and site types 06-08 ---------- */
.ch-break{ padding:var(--space-7) 0 var(--space-5); border-bottom:2px solid var(--deep-blue); }
.ch-break__lanes{ width:64px; margin-bottom:var(--space-4); }
.svc .ch-break h2{ font-size:clamp(28px, 2.8vw, 48px); }
:lang(ko) .svc .ch-break h2{ font-size:clamp(24px, 2.4vw, 38px); }
.ch-break p{ margin-top:var(--space-3); max-width:52ch; font-size:var(--fs-lead); line-height:var(--lh-lead); color:var(--ink-2); }

/* ---------- galleries ---------- */
.gal{ position:relative; }
.gal__view{ overflow-x:auto; scroll-snap-type:x mandatory; background:var(--ink); }
.gal.is-live .gal__view{ overflow:hidden; }
.gal__track{ display:flex; }
.gal__slide{ position:relative; flex:0 0 100%; min-width:0; margin:0; aspect-ratio:var(--svc-media); scroll-snap-align:start; background:var(--ink); }
.gal__slide img{ width:100%; height:100%; object-fit:cover; }
.gal__slide.is-sheet{ background:var(--navy-deep); padding:var(--space-5); }
.gal__slide.is-sheet::after{ content:""; position:absolute; inset:var(--space-3); border:1px solid var(--rule-dark); pointer-events:none; }
.gal__slide.is-sheet img{ object-fit:contain; }
.seq-progress{ display:none; height:3px; background:var(--line); }
.seq-progress__fill{ display:block; height:100%; width:var(--seq-pct, 0%); background:linear-gradient(90deg, var(--lane-1), var(--lane-2), var(--lane-3)); transition:width 240ms var(--ease); }
.gal__bar{ display:flex; align-items:center; justify-content:flex-end; gap:var(--space-3); padding-top:var(--space-3); }
.gal__btn{ width:var(--ctl-h); height:var(--ctl-h); display:grid; place-items:center; padding:0; border:1px solid var(--ink); background:transparent; color:var(--ink); clip-path:var(--cut-corner); }
.gal__btn::before{ content:""; width:var(--svc-chev); height:var(--svc-chev); border-left:var(--svc-chev-w) solid currentColor; border-bottom:var(--svc-chev-w) solid currentColor; transform:translateX(2px) rotate(45deg); }
.gal__next::before{ transform:translateX(-2px) rotate(-135deg); }
.gal__btn:hover{ background:var(--deep-blue); color:white; border-color:var(--deep-blue); }
.gal__btn:disabled{ opacity:.35; cursor:default; background:transparent; color:var(--ink); border-color:var(--ink); }
.gal__btn:focus-visible{ outline-offset:-4px; }   /* inside the cut corner, where the clip cannot remove it */
.gal__count{ min-width:5ch; text-align:center; font-size:var(--fs-small); font-variant-numeric:tabular-nums; }

/* ---------- rentals: a separate dark board under a three-lane rule, not a ninth chapter ---------- */
.fleet{ padding:var(--section-y) var(--pad); color:white;
  background:linear-gradient(var(--lane-1) 0 var(--lane-rule), var(--lane-2) var(--lane-rule) calc(var(--lane-rule) * 2),
    var(--lane-3) calc(var(--lane-rule) * 2) calc(var(--lane-rule) * 3), var(--navy-deep) calc(var(--lane-rule) * 3)); }
.fleet__head{ display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); gap:var(--grid-gap); align-items:end; }
.fleet__lead{ max-width:var(--measure-lead); font-size:var(--fs-lead); line-height:var(--lh-lead); }
.fleet__actions{ display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-5); margin-top:var(--space-5); }
.fleet .route-link{ background:var(--mist); color:var(--ink); }
.fleet .route-link:hover{ background:white; }
.fleet .source{ margin-top:0; }
/* the four machines from the Rentals & Sales photo set: one 3:2 crop each; 4 across, 2 x 2 below 981px (at least 160 px wide at 390) */
.fleet__set{ margin:var(--stack-head) 0 0; }
.fleet__grid{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:var(--space-4) var(--space-2); }
.fleet__grid img{ width:100%; height:auto; aspect-ratio:3 / 2; object-fit:cover; background:var(--ink); }
.fleet__grid span{ display:block; padding-top:var(--space-2); font-size:var(--fs-small); font-weight:600; color:var(--on-dark); }

/* ---------- korean: the display face has no Hangul, so titles take the Korean sizes ---------- */
:lang(ko) .svc{ word-break:keep-all; }
:lang(ko) .svc h1,:lang(ko) .svc h2{ font-weight:var(--fw-display-ko); letter-spacing:var(--ls-display-ko); text-transform:none; }
:lang(ko) .svc h1{ font-size:var(--fs-display-ko); line-height:var(--lh-display-ko); }
:lang(ko) .svc h2{ font-size:var(--fs-h2-ko); line-height:var(--lh-h2-ko); }

@media (max-height: 780px) and (min-width: 981px){
  .seq-rail__pin{ padding-top:var(--space-7); }
}
@media (max-width: 980px){
  .svc .fhero{ --fhero-focus:34% 50%; }
  .seq{ display:block; padding:0; }
  .seq-rail{ position:sticky; top:var(--mast-h, 0px); z-index:3; background:var(--mist); border-bottom:1px solid var(--line); }
  .seq-rail__pin{ position:static; padding:0; }
  .seq-rail .stack{ display:none; }
  .seq-progress{ display:block; }
  .fleet__grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .seq-nav{ display:flex; margin:0; padding:0 var(--pad); border:0; overflow-x:auto; scroll-snap-type:x proximity; scroll-padding-inline:var(--pad); scrollbar-width:none; }
  .seq-nav li{ flex:none; scroll-snap-align:start; }
  .seq-nav a{ display:flex; align-items:center; gap:var(--space-2); min-height:var(--ctl-h); padding-right:var(--space-4); border:0; white-space:nowrap; font-size:var(--fs-small); }
  .seq-nav a[aria-current]{ box-shadow:inset 0 -3px 0 var(--mark-blue); }
  .seq-chapters{ padding:0 var(--pad); }
  .ch{ scroll-margin-top:calc(var(--mast-h, 0px) + var(--ctl-h) + 12px); }
}
@media (max-width: 640px){
  .svc .fhero{ --fhero-focus:46% 50%; }
  .ch{ padding-block:var(--space-7); }   /* phones: sections are 56px apart, so chapters stay below that at 48px */
  .stack{ --svc-key:12px; }
}
@media (max-width: 480px){
  .stack{ --svc-key:19px; }
  .stack .key__c--sm{ display:none; }
  .stack .key__c--lg{ display:inline; }
}
/* the narrowest phones: keep the drawing keys near 12px on screen and the rental photos at least 160px wide */
@media (max-width: 379px){
  .stack{ --svc-key:21px; }
  .fleet__grid{ grid-template-columns:1fr; }
}
@media (max-width: 760px){
  .ch__copy{ grid-template-columns:1fr; gap:var(--space-5); }
  .ch--compact{ grid-template-columns:1fr; }
  .ch--compact .ch__copy{ margin-top:var(--space-5); }
  .ch__proof{ border-left:0; padding-left:0; border-top:1px solid var(--line); padding-top:var(--space-5); }
  .fleet__head{ grid-template-columns:1fr; gap:var(--space-5); }
}
@media (prefers-reduced-motion: reduce){
  .stack .ly,.stack .dr,.seq-nav a,.seq-nav__n{ transition:none; }
}
