/* Hallmark · construction · the site record: ruled, dated, stamped paper on white, soft blue for whatever is in progress · tokens from corbel.css · v2.1.0 */
/* Hallmark · pre-emit critique: P4 H4 E3 S4 R4 V4 · weakest: E, no photographs of finished work yet; the documents a well-run job produces carry the page until the team supplies them */
/* Hallmark · waive 7b · pure white is pinned by the owner: white for every background is one of the four colours, by request */

/* A buyer choosing a builder wants proof of competence and control, so the page is built like the paperwork a well-run
   job produces: ruled, dated, stamped. Calm motion: paper slides in, stamps press, bars fill. No depth, no theatre. */
.c-hero { padding: clamp(var(--space-12), 8vh, var(--space-24)) 0 clamp(56px, 9vh, 104px); }
.c-hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(var(--space-8), 5vw, 80px); align-items: end; }
.c-h1 { font: 800 clamp(48px, 6.6vw, 104px)/0.92 var(--font-display); font-stretch: 106%; letter-spacing: -0.035em; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
.c-lede { margin-top: var(--space-6); max-width: 44ch; font-size: 20px; line-height: 1.5; color: var(--ink-muted); text-wrap: pretty; }
.c-acts { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }

.status { padding: var(--space-6) var(--space-6); background: var(--sky); border: 2px solid var(--ink); }
.st-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.st-head h2 { font: 700 20px/1.1 var(--font-display); }
.st-head p { font: 400 12px/1.3 var(--font-outlier); color: var(--ink-muted); text-align: right; }
.weeks { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: var(--space-1); margin: 20px 0 var(--space-2); }
.weeks i { height: 30px; background: var(--paper); border: 1px solid var(--ink); transform-origin: bottom; }
.weeks i.done { background: var(--ink); }
.weeks i.now { background: var(--paper); border-width: 3px; }
.wk-lab { display: flex; justify-content: space-between; font: 400 12px/1 var(--font-outlier); color: var(--ink-muted); }
.st-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-3) 0; border-top: 1px solid var(--ink); font: 500 15px/1.3 var(--font-body); }
.st-row:first-of-type { margin-top: var(--space-4); }
.st-row small { display: block; font: 400 13px/1.35 var(--font-body); color: var(--ink-muted); }
.sample { margin-top: var(--space-3); font: 400 12px/1.4 var(--font-outlier); color: var(--ink-muted); }

/* Credentials: a drawing's title block. On a construction sheet the corner block says who answers for the work, which is
   what a buyer checks first. Four ruled cells on white. */
.creds ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid var(--ink); }
.creds li { padding: 20px var(--space-6); border-right: 1px solid var(--ink); }
.creds li:last-child { border-right: 0; }
.creds b { display: block; font: 700 22px/1.15 var(--font-display); font-stretch: 106%; }
.creds span { display: block; margin-top: var(--space-2); font: 400 13px/1.4 var(--font-outlier); color: var(--ink-muted); }

.c-sec { padding: clamp(72px, 12vh, 140px) 0; }
.c-sec-h { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 56px; }
.c-big { font: 800 clamp(38px, 4.6vw, 72px)/0.95 var(--font-display); font-stretch: 106%; letter-spacing: -0.03em; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
.c-sec-h p { max-width: 46ch; font-size: 19px; line-height: 1.5; color: var(--ink-muted); }

/* What we build: two kinds of client, side by side. */
/* Two job folders, split by a heavy rule. */
.types { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 3px solid var(--ink); }
.type { padding: 36px 40px 40px 0; }
.type + .type { padding: 36px 0 40px 40px; border-left: 2px solid var(--ink); }
.type h3 { font: 800 clamp(32px, 3.2vw, 48px)/1 var(--font-display); font-stretch: 112.5%; letter-spacing: -0.02em; }
.type .for { margin-top: var(--space-3); max-width: 42ch; font-size: 17px; color: var(--ink-muted); }
.scopes { margin: 28px 0 var(--space-8); border-bottom: 2px solid var(--ink); }
.scopes li { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) 0; border-top: 1px solid var(--line); font: 600 18px/1.3 var(--font-body); }
.scopes li span { font: 400 13px/1.4 var(--font-outlier); color: var(--ink-muted); text-align: right; }
.matters { margin-bottom: 28px; padding: 20px 20px; background: var(--sky); border: 1px solid var(--ink); font-size: 15px; line-height: 1.5; }
.matters b { display: block; margin-bottom: var(--space-1); font: 500 12px/1.3 var(--font-outlier); }

/* How we run a job: the phases on the left, the paper you receive on the right. */
.method { border-block: 2px solid var(--ink); }
.m-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(var(--space-8), 5vw, 80px); }
.m-nav { position: sticky; top: calc(var(--hd) + 40px); align-self: start; }
.m-nav .c-lede { font-size: 18px; }
/* The rail: soft blue for the whole job, filling in black as you scroll through it. The current phase sits on soft blue. */
.m-nav ol { position: relative; margin-top: 36px; padding-left: 20px; border-top: 2px solid var(--ink); --rail: 1; }
.m-nav ol::before, .m-nav ol::after { content: ""; position: absolute; left: 0; top: 0; width: 6px; }
.m-nav ol::before { bottom: 0; background: var(--sky); }
.m-nav ol::after { height: 100%; background: var(--ink); transform-origin: top; transform: scaleY(var(--rail)); }
.m-nav li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: var(--space-2); padding: var(--space-4) var(--space-3); border-bottom: 1px solid var(--line); font: 600 19px/1.25 var(--font-body); color: var(--ink-muted); transition: color 300ms var(--set), background-color 300ms var(--set); }
.m-nav li i { font: 500 13px/1.9 var(--font-outlier); font-style: normal; }
.m-nav li.on { color: var(--ink); background: var(--sky); }
.m-nav li.past { color: var(--ink); }
.m-nav .bar { display: none; }
.phase { display: flex; flex-direction: column; justify-content: center; min-height: 82vh; padding: 40px 0; }
.phase h3 { font: 800 clamp(30px, 3vw, 44px)/1 var(--font-display); font-stretch: 106%; letter-spacing: -0.02em; }
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; border-top: 1px solid var(--ink); }
.roles div { padding: var(--space-3) var(--space-4) 0 0; font-size: 15px; line-height: 1.45; }
.roles b { display: block; margin-bottom: var(--space-1); font: 500 12px/1.3 var(--font-outlier); color: var(--ink-muted); }
.doc { margin-top: 28px; padding: var(--space-6) var(--space-6); background: var(--paper); border: 2px solid var(--ink); }
.doc-h { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding-bottom: var(--space-3); border-bottom: 2px solid var(--ink); font: 700 18px/1.1 var(--font-display); }
.doc-h span { font: 400 12px/1.3 var(--font-outlier); color: var(--ink-muted); }
.dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); font: 400 14px/1.35 var(--font-outlier); }
.gantt { display: grid; gap: var(--space-2); margin-top: var(--space-4); }
.gr { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: var(--space-3); align-items: center; font: 400 13px/1.3 var(--font-outlier); }
.gr span { position: relative; height: 14px; }
.gr span i { position: absolute; inset: 0 auto 0 calc(var(--a) * 1%); width: calc(var(--w) * 1%); background: var(--c, var(--ink)); border: 1px solid var(--ink); transform-origin: left; }
.sig path { fill: none; stroke: var(--ink); stroke-width: 2.2; }

/* Why an AI-native contractor: the same four moments, side by side. */
.cmp { border-top: 3px solid var(--ink); }
.cmp-row { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); align-items: start; padding: var(--space-6) 0; border-bottom: 1px solid var(--line); }
.cmp-row.head { padding: var(--space-4) 0; font: 500 13px/1.3 var(--font-outlier); color: var(--ink-muted); }
.cmp-row.head b { color: var(--ink); font-weight: 600; }
.cmp-row h3 { font: 700 21px/1.2 var(--font-display); }
.cmp-row p { font-size: 16px; line-height: 1.5; }
/* The old way is struck through in soft blue; the Corbel line carries a black edge and lights up as it lands. */
.cmp-row .them { color: var(--ink-muted); text-decoration: line-through; text-decoration-color: var(--sky); text-decoration-thickness: 3px; transition: text-decoration-color 600ms var(--set) 300ms; }
.cmp-row .us { font-weight: 500; padding-left: var(--space-4); box-shadow: inset 4px 0 0 var(--ink); }
.js.motion .cmp-row.reveal .them { text-decoration-color: transparent; }
.js.motion .cmp-row.reveal.in .them { text-decoration-color: var(--sky); }
.js.motion .cmp-row.reveal.in .us { animation: light 1600ms var(--set) 500ms both; }
@keyframes light { 0% { background-color: transparent; } 30% { background-color: var(--sky); } 100% { background-color: transparent; } }
.cmp-row .who { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.engine { display: flex; justify-content: space-between; align-items: center; gap: var(--space-6); margin-top: 40px; padding: 20px 28px; background: var(--sky); }
.engine p { max-width: 60ch; font-size: 17px; line-height: 1.5; }
.engine a { flex: none; color: var(--ink); font: 600 15px/1.2 var(--font-body); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--ink); transition: text-underline-offset var(--state); }
.engine a:hover { text-underline-offset: 9px; }

/* The close: the visitor fills in a sentence, and beside it the job sheet Corbel will keep for them fills in as they type.
   The one brown on the screen is the button. */
.c-close { border-top: 2px solid var(--ink); }
.c-close-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(var(--space-8), 5vw, 80px); align-items: start; }
.mad-line { margin-top: var(--space-8); font: 500 clamp(22px, 2.3vw, 32px)/1.75 var(--font-display); text-wrap: pretty; }
.mad .b { font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; padding: 0 var(--space-1); min-width: 0; transition: background-color var(--state); }
.mad .b::placeholder { color: var(--ink-muted); }
.mad .b:hover { background: var(--sky); }
.mad .b:focus-visible { background: var(--sky); outline: 2px solid var(--ink); outline-offset: 2px; }
.mad .b[aria-invalid="true"] { border-bottom-style: dashed; }
.b-name, .b-where { width: 7.5em; }
.b-phone { width: 8em; }
.b-job { width: 100%; }
.b-sel { display: inline-block; }
.b-sel::after { right: 4px; }
.b-sel select { appearance: none; padding-right: 28px; cursor: pointer; }
.form-err { margin-top: var(--space-4); }
.mad-act { display: grid; justify-items: start; gap: var(--space-3); margin-top: var(--space-8); }
.mad-act .hint { max-width: 54ch; }
.mad .form-status { margin: var(--space-6) 0 0; }
.jobsheet { position: sticky; top: calc(var(--hd) + 32px); background: var(--paper); border: 2px solid var(--ink); transform: rotate(1deg); transition: transform var(--turn) var(--set); }
.jobsheet:hover { transform: none; }
.jr { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); font-size: 16px; }
.jr span:first-child { font: 400 12px/1.7 var(--font-outlier); color: var(--ink-muted); }
.jr .v { min-height: 1.5em; overflow-wrap: anywhere; transition: background-color 500ms var(--set); }
.jr .v.blank { color: var(--ink-muted); }
.jr .v.lit { background: var(--sky); }
.js-weeks { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: var(--space-1); padding: var(--space-4) var(--space-4) var(--space-2); }
.js-weeks i { height: 14px; border: 1px solid var(--ink); }
.js-weeks i.on { background: var(--ink); }
.js-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4) var(--space-4); font: 400 12px/1.3 var(--font-outlier); }
.js-foot .waiting { color: var(--ink-muted); }
.jobsheet .sent { display: none; }
.jobsheet.done .sent { display: inline-flex; }
.jobsheet.done .waiting { display: none; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); }

/* Motion: only under .motion, so without the script or with reduced motion every sheet is simply there and stamped. */
.js.motion .weeks i { animation: rise 500ms var(--set) both; animation-delay: calc(200ms + var(--w) * 90ms); }
.js.motion .st-row .stamp { animation: press 400ms var(--set) both; animation-delay: calc(1200ms + var(--i) * 280ms); }
@keyframes rise { from { transform: scaleY(0); } }
@keyframes press { from { transform: scale(2) rotate(-8deg); opacity: 0; } }
.js.motion .reveal { opacity: 0; transform: translateY(28px); transition: transform var(--turn) var(--set), opacity 600ms var(--set); }
.js.motion .reveal.in { opacity: 1; transform: none; }
.js.motion .doc { opacity: 0; transform: translateY(40px) rotate(1.2deg); transition: transform var(--turn) var(--set), opacity 500ms var(--set); }
.js.motion .phase.in .doc { opacity: 1; transform: none; }
.js.motion .dl .stamp { opacity: 0; transform: scale(2) rotate(-8deg); transition: transform 300ms var(--set), opacity 200ms var(--set); transition-delay: calc(700ms + var(--i, 0) * 180ms); }
.js.motion .phase.in .dl .stamp { opacity: 1; transform: none; }
.js.motion .gr span i { transform: scaleX(0); transition: transform 700ms var(--set); transition-delay: calc(400ms + var(--a) * 12ms); }
.js.motion .phase.in .gr span i { transform: none; }
.js.motion .sig path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1400ms var(--set) 900ms; }
.js.motion .phase.in .sig path { stroke-dashoffset: 0; }

@media (max-width: 900px) {
  .c-hero-in, .c-sec-h, .types, .m-grid, .c-close-in, .row2 { grid-template-columns: minmax(0, 1fr); }
  .type, .type + .type { padding: 28px 0; border-left: 0; }

  .creds ul { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .creds li { padding: var(--space-4); border-right: 0; border-bottom: 1px solid var(--ink); }
  .creds li:nth-child(odd) { border-right: 1px solid var(--ink); }
  .creds li:nth-last-child(-n+2) { border-bottom: 0; }
  .type + .type { border-top: 2px solid var(--ink); }
  .jobsheet { position: static; transform: none; }
  .m-nav { position: static; }
  .phase { min-height: 0; padding: 28px 0; }
  .roles { grid-template-columns: minmax(0, 1fr); }
  .cmp-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .cmp-row.head { display: none; }
  .cmp-row .who { position: static; width: auto; height: auto; overflow: visible; clip-path: none; font-weight: 700; }
  .engine { flex-direction: column; align-items: start; }

  /* On a phone the report shows its three stamped lines without the notes under them. */
  .st-row small { display: none; }

  /* How we run a job: on a phone the five phases are cards you swipe through, not five screens of scrolling. The rail
     becomes five steps that fill in black as you go, and tapping a step brings its card. */
  .m-nav ol { display: flex; gap: var(--space-1); margin-top: var(--space-6); padding-left: 0; border-top: 0; }
  .m-nav ol::before, .m-nav ol::after { display: none; }
  .m-nav li { flex: 1; display: block; padding: var(--space-2) 0 0; border-bottom: 0; border-top: 4px solid var(--sky); background: none; cursor: pointer; }
  .m-nav li.on, .m-nav li.past { border-top-color: var(--ink); background: none; }
  .m-nav li span { display: none; }
  .m-nav li i { font-size: 12px; }
  .m-grid > div:last-child { display: flex; gap: var(--space-3); margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) var(--space-2); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
  .m-grid > div:last-child::-webkit-scrollbar { display: none; }
  .phase { flex: 0 0 86%; justify-content: flex-start; padding: var(--space-6) var(--space-4); border: 2px solid var(--ink); scroll-snap-align: start; }
  .phase h3 { font-size: 26px; }

  /* The close: the sentence keeps flowing, with room between its lines for a thumb, and the one long answer gets a line of
     its own. The job sheet stays on larger screens, where it can be seen filling in beside the sentence. */
  .mad-line { font-size: 20px; line-height: 2.2; }
  .mad .b-job { display: block; width: 100%; margin: var(--space-1) 0; font-size: 16px; line-height: 2; }
  .jobsheet { display: none; }
}
