/* Merlantic Forming Solutions: styles shared by every page.
   Design B, "Section": the site reads as a construction drawing. Drafting vellum, the logo's charcoal ink,
   and the logo's sky blue (#56B0E2) for markup and accents. --line is a deeper blue for text and dimension
   lines, dark enough to read on the light sheets.
   Big Shoulders Display (condensed, industrial) for headings; Public Sans for text. */
:root{
  --vellum:#ECF1F4; --sheet:#FAFBFC; --ink:#21201E; --sky:#56B0E2; --line:#2A78AD; --faint:#D2DCE3; --muted:#4F5A63;
  --gut:clamp(20px,5vw,72px); --max:1280px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:24px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{font:400 1.04rem/1.65 "Public Sans",system-ui,sans-serif;color:var(--ink);background:var(--vellum);
  background-image:linear-gradient(var(--faint) 1px,transparent 1px),linear-gradient(90deg,var(--faint) 1px,transparent 1px);background-size:32px 32px;background-attachment:fixed}
img{display:block;max-width:100%}
a{color:inherit}
:focus-visible{outline:3px solid var(--sky);outline-offset:3px}
.wrap{max-width:var(--max);margin:0 auto;padding:0 var(--gut)}
h1,h2,h3{font-family:"Big Shoulders Display",system-ui,sans-serif;font-weight:800;line-height:.92;letter-spacing:.005em}

/* Top bar: logo mark and wordmark (multiply blends the logo's white into the vellum), menu, quote button. */
.top{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px var(--gut);max-width:var(--max);margin:0 auto}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.brand img{mix-blend-mode:multiply}
.brand .mark{width:60px;height:60px}
.brand .word{height:34px;width:auto}
.top nav{display:flex;gap:28px;font-weight:600}
.top nav a{text-decoration:none;border-bottom:2px solid transparent}
.top nav a:hover{border-color:var(--sky)}
.btn{display:inline-block;background:var(--ink);color:var(--sheet);text-decoration:none;font:700 1rem "Public Sans",sans-serif;padding:14px 22px;border:2px solid var(--ink);cursor:pointer}
.btn:hover{background:var(--line);border-color:var(--line)}
.btn.line{background:transparent;color:var(--ink)}
.btn.line:hover{background:var(--ink);color:var(--sheet)}

/* Hero: words left, the section drawing right. */
.hero{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,6fr);gap:clamp(24px,4vw,64px);align-items:center;padding-top:clamp(20px,4vw,56px);padding-bottom:clamp(40px,6vw,90px)}
.hero h1{font-size:clamp(3.4rem,8.4vw,7.6rem)}
.hero p{font-size:1.16rem;max-width:30em;margin-top:24px}
.hero .actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:30px}
.drawing{background:var(--sheet);border:2px solid var(--ink);padding:10px}
.drawing svg{display:block;width:100%;height:auto}
.drawing figcaption{display:flex;justify-content:space-between;gap:12px;border-top:2px solid var(--ink);margin-top:10px;padding-top:8px;font-size:.85rem;font-weight:600}

/* Section drawing. Strokes draw in once (pathLength=1), then fills and labels fade up. */
.s-ink{fill:none;stroke:var(--ink);stroke-width:2.2;stroke-linejoin:round}
.s-thin{fill:none;stroke:var(--line);stroke-width:1.4}
.s-sky{fill:none;stroke:var(--sky);stroke-width:2.6}
.s-label{font:600 13px "Public Sans",sans-serif;fill:var(--ink)}
.s-dim{font:700 15px "Public Sans",sans-serif;fill:var(--line)}
.s-skytext{font:700 14px "Public Sans",sans-serif;fill:var(--line)}
.concrete-fill{fill:url(#crete)}
.earth{fill:url(#earth)}
.draw path{stroke-dasharray:1;stroke-dashoffset:1;animation:draw 1.1s cubic-bezier(.6,0,.3,1) forwards}
.draw path:nth-child(3n+2){animation-delay:.25s}
.draw path:nth-child(3n){animation-delay:.5s}
.later{opacity:0;animation:fade .6s ease-out 1.3s forwards}
@keyframes draw{to{stroke-dashoffset:0}}
@keyframes fade{to{opacity:1}}
@media (prefers-reduced-motion:reduce){.draw path{animation:none;stroke-dashoffset:0}.later{animation:none;opacity:1}}

/* Sheets: each section sits on its own drawing sheet. */
.sheet{background:var(--sheet);border:2px solid var(--ink);margin-top:clamp(28px,4vw,48px);padding:clamp(28px,4vw,56px)}
.sheet-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:12px 40px;border-bottom:2px solid var(--ink);padding-bottom:18px}
.sheet-head h2{font-size:clamp(2.6rem,5.6vw,4.8rem)}
.sheet-head p{max-width:30em}

/* What we form: a schedule, the way it would appear on a drawing. */
.schedule{width:100%;border-collapse:collapse;margin-top:8px}
.schedule th,.schedule td{text-align:left;vertical-align:top;padding:18px 16px 18px 0;border-bottom:1px solid var(--faint)}
.schedule thead th{font-size:.85rem;font-weight:700;color:var(--line);padding-top:20px}
.schedule tbody th{font:800 1.7rem/1 "Big Shoulders Display",sans-serif;width:32%}
.schedule td.note{color:var(--muted);font-size:.95rem;width:30%}

/* How it works: four steps along a dimension line. */
.steps{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:36px;position:relative}
.steps::before{content:"";position:absolute;left:0;right:0;top:15px;border-top:2px solid var(--line)}
.steps li{position:relative;padding:44px 20px 0 0}
.steps li::before{content:attr(data-n);position:absolute;top:0;left:0;width:32px;height:32px;border-radius:50%;background:var(--sheet);border:2px solid var(--line);display:grid;place-items:center;font-weight:700;color:var(--line);font-size:.9rem}
.steps h3{font-size:1.7rem}
.steps p{margin-top:8px}

/* Hiring: a markup note in the logo's blue. */
.markup{border:3px solid var(--sky);border-radius:28px;padding:clamp(24px,3vw,36px);margin-top:clamp(28px,4vw,48px);display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px 40px;background:var(--sheet)}
.markup h2{font-size:clamp(2.2rem,4.4vw,3.6rem);color:var(--line)}
.markup p{max-width:30em;margin-top:8px}
.markup .btn{background:var(--sky);border-color:var(--sky);color:var(--ink)}
.markup .btn:hover{background:var(--ink);border-color:var(--ink);color:var(--sheet)}

/* Quote request */
.quote{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(28px,5vw,72px);margin-top:28px}
.quote dl{display:grid;gap:12px;margin-top:22px}
.quote dt{font-weight:700;color:var(--line);font-size:.9rem}
form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
form input,form select,form textarea{min-width:0;width:100%}
label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:.92rem}
label.full{grid-column:1/-1}
input,select,textarea{font:inherit;font-weight:400;border:none;border-bottom:2px solid var(--ink);background:transparent;padding:10px 2px;color:var(--ink);border-radius:0}
input:focus,select:focus,textarea:focus{outline:none;border-bottom-color:var(--sky)}
textarea{min-height:110px;resize:vertical;border:2px solid var(--ink);padding:10px}
textarea:focus{border-color:var(--sky)}
.form-note{grid-column:1/-1;font-size:.9rem;color:var(--muted)}
.form-note.form-error{color:#B3261E;font-weight:600}
input[type=file]{border-bottom-style:dashed;padding:10px 0;font-size:.9rem}
form .btn:disabled{opacity:.6;cursor:wait}
form .btn{grid-column:1/-1;justify-self:start}

/* Footer: a drawing title block. */
.titleblock{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;border:2px solid var(--ink);background:var(--sheet);margin:clamp(28px,4vw,48px) auto}
.titleblock>div{padding:12px 16px;border-left:2px solid var(--ink)}
.titleblock>div:first-child{border-left:none}
.titleblock small{display:block;font-size:.78rem;color:var(--line);font-weight:600}
.titleblock span{font-weight:600}
.titleblock .logo{width:100%;max-width:320px;height:auto;mix-blend-mode:multiply}
.titleblock .motto{display:block;margin-top:4px}

@media (max-width:900px){
  .top nav{display:none}
  .hero{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr 1fr;row-gap:28px}
  .steps::before{display:none}
  .quote{grid-template-columns:1fr}
  .titleblock{grid-template-columns:1fr 1fr}
  .titleblock>div:first-child,.titleblock>div:nth-child(4){grid-column:1/-1}
  .titleblock>div:nth-child(2),.titleblock>div:nth-child(4){border-left:none}
  .titleblock>div:nth-child(n+2){border-top:2px solid var(--ink)}
}
@media (max-width:560px){
  .brand .mark{width:48px;height:48px}
  .brand .word{height:26px}
  .top .btn{padding:11px 14px;font-size:.92rem}
  .schedule thead{display:none}
  .schedule tr{display:block;border-bottom:1px solid var(--faint);padding:14px 0}
  .schedule th,.schedule td{display:block;border:none;padding:4px 0;width:auto!important}
  .steps{grid-template-columns:1fr}
  form{grid-template-columns:1fr}
}
@media (max-width:420px){.brand .word{display:none}}

/* ---------- Our work: photo sheets ---------- */
/* Page head for inner pages */
.page-head{padding-top:clamp(20px,4vw,48px);padding-bottom:clamp(8px,2vw,16px)}
.page-head h1{font-size:clamp(3.4rem,8vw,7rem)}
.page-head p{font-size:1.14rem;max-width:34em;margin-top:18px}

/* Sheet index: jump to a section. Each link carries the section's detail letter. */
.sheet-index{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px;list-style:none}
.sheet-index a{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:600;background:var(--sheet);border:2px solid var(--ink);padding:6px 14px 6px 6px}
.sheet-index a:hover{background:var(--ink);color:var(--sheet)}
.sheet-index a:hover .bubble{border-color:var(--sheet)}

/* Detail bubble, as on a drawing: number over sheet letter. */
.bubble{flex:none;display:inline-grid;grid-template-rows:1fr 1fr;width:34px;height:34px;border-radius:50%;border:2px solid currentColor;font:800 .78rem/1 "Public Sans",sans-serif;text-align:center;overflow:hidden}
.bubble b,.bubble i{display:grid;place-items:center;font-style:normal}
.bubble i{border-top:2px solid currentColor}
.bubble.solo{grid-template-rows:1fr;font-size:.95rem}

/* Photo grid: justified rows. Each tile's width follows its photo's shape (--r = width / height) and the
   tiles in a row stretch to fill it, so rows are full width with no holes. The filler after the last tile
   keeps the final row from stretching. Tiles start at 80% of their natural width, so two
   panoramas share a row instead of one being stretched across it. */
.gallery{--h:clamp(170px,17vw,250px);display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}
.gallery::after{content:"";flex-grow:999999}
.shot{position:relative;overflow:hidden;background:var(--faint);border:0;padding:0;cursor:zoom-in;display:block;height:var(--h);flex:calc(var(--r) * 100) 1 calc(var(--r) * var(--h) * .8);color:var(--sheet);text-align:left}
.shot img{width:100%;height:100%;object-fit:cover;transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.shot::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,20,19,0) 45%,rgba(20,20,19,.78));opacity:0;transition:opacity .3s}
.shot .bubble{position:absolute;top:10px;left:10px;z-index:2;background:rgba(250,251,252,.92);color:var(--ink);border-color:var(--ink)}
.shot .cap{position:absolute;left:14px;right:14px;bottom:12px;z-index:2;font-weight:600;font-size:.95rem;line-height:1.35;opacity:0;transform:translateY(6px);transition:opacity .3s,transform .3s}
.shot:hover img,.shot:focus-visible img{transform:scale(1.04)}
.shot:hover::after,.shot:focus-visible::after,.shot:hover .cap,.shot:focus-visible .cap{opacity:1}
.shot:hover .cap,.shot:focus-visible .cap{transform:none}
.shot:focus-visible{outline:3px solid var(--sky);outline-offset:2px}
.count{font-weight:600;color:var(--line)}
.more{margin-top:22px}
@media (hover:none){.shot .cap{opacity:1;transform:none;font-size:.85rem}.shot::after{opacity:1}}
@media (prefers-reduced-motion:reduce){.shot img,.shot .cap{transition:none}}
@media (max-width:560px){.gallery{--h:150px;gap:6px}}

/* Viewer: full-screen photo with arrows, keys and swipe. */
.viewer{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;padding:0;background:#141413;color:var(--sheet)}
.viewer[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.viewer::backdrop{background:rgba(20,20,19,.6)}
.v-top{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px clamp(14px,3vw,28px)}
.v-where{display:flex;align-items:center;gap:12px;font-weight:600}
.v-where .bubble{color:var(--sky)}
.v-stage{position:relative;display:grid;place-items:center;min-height:0;padding:0 clamp(8px,6vw,90px)}
.v-stage img{max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 10px 40px rgba(0,0,0,.4);animation:vin .35s ease-out}
@keyframes vin{from{opacity:0;transform:scale(.985)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.v-stage img{animation:none}}
.v-cap{padding:14px clamp(14px,3vw,28px) 20px;text-align:center;font-size:1.05rem;font-weight:500;min-height:3.4em}
.v-btn{font:700 1rem "Public Sans",sans-serif;color:var(--sheet);background:transparent;border:2px solid rgba(250,251,252,.4);cursor:pointer;padding:10px 16px}
.v-btn:hover{border-color:var(--sky);color:var(--sky)}
.v-prev,.v-next{position:absolute;top:50%;transform:translateY(-50%);width:52px;height:52px;padding:0;font-size:1.4rem;background:rgba(20,20,19,.5)}
.v-prev{left:clamp(6px,2vw,20px)}
.v-next{right:clamp(6px,2vw,20px)}
@media (max-width:560px){.v-prev,.v-next{top:auto;bottom:8px;transform:none;width:44px;height:44px}}
