/* Skegness Scaffolding Services: one-page site. Signature: the brace. */
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 800; font-display: swap; src: url("../fonts/barlow-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: optional; src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2"); }

:root {
  --ground: #eef2f0;
  --paper: #ffffff;
  --ink: #0b0e0c;
  --ink-2: #3b4440;
  --line: #c9d1cd;
  --green: #45e01f;
  --green-hi: #8cf56c;
  --green-lo: #1f9a0c;
  --green-deep: #0d5f17;
  --night: #0b0e0c;
  --night-2: #19201c;
  --on-night: #ffffff;
  --on-night-2: #b8c2bd;
  --steel: #c3cbc7;
  --clamp: #2b322e;
  --display: "Barlow", "Arial Narrow", sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --angle: -7deg;
  --tan: 0.1228;
  --bh: calc(var(--tan) * 100vw + 70px);
  --gut: clamp(16px, 4vw, 56px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.6 var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--green); }
h1, h2 { font-family: var(--display); font-style: italic; font-weight: 800; line-height: 1.02; letter-spacing: -0.01em; margin: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* header */
.top { display: flex; align-items: center; gap: 28px; max-width: var(--max); margin: 0 auto; padding: 18px var(--gut); }
.logo { display: inline-flex; flex-direction: column; background: var(--night); color: #fff; padding: 9px 14px 10px 12px; text-decoration: none; font: italic 800 1.02rem/1.02 var(--display); transform: skewX(-7deg); }
.logo span { transform: skewX(7deg); }
.logo b, .foot-mark b { color: var(--green); font-size: 1.18em; }
.nav { display: flex; gap: 26px; margin-left: auto; font-weight: 600; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--ink); }
.call-top { font-weight: 700; font-size: 1.05rem; text-decoration: none; padding: 4px 0; box-shadow: inset 0 -6px 0 var(--green); white-space: nowrap; }
.call-top span { font-weight: 500; color: var(--ink-2); }
.call-tops { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* hero: words left, photo bleeding off the right edge */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, min(42vw, 640px)); align-items: start; gap: 0; padding-left: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); position: relative; }
.hero-words { padding: 60px 56px 150px 0; }
.kicker { margin: 0 0 18px; font-weight: 600; color: var(--ink-2); }
.hero h1 { font-size: clamp(2.5rem, 4.3vw, 4.4rem); max-width: 15ch; }
.trio { margin: 26px 0 0; font: italic 800 clamp(1.25rem, 1.8vw, 1.6rem)/1.2 var(--display); display: flex; flex-wrap: wrap; gap: 0 14px; }
.trio span:nth-child(2) { color: var(--green-deep); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 34px; }
.btn { display: inline-block; background: var(--green); color: var(--ink); font: italic 800 1.25rem/1 var(--display); text-decoration: none; padding: 17px 26px 16px; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.btn:hover { background: var(--green-hi); }
.txt { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-photo figcaption { position: absolute; left: -24px; bottom: 120px; background: var(--night); color: var(--on-night-2); font-size: 0.92rem; padding: 10px 14px 11px; max-width: 30ch; }
.hero-photo figcaption span { display: block; color: #fff; font: italic 800 1.3rem/1.1 var(--display); margin-bottom: 2px; }

/* the brace: one green tube on the page angle, crossing between sections */
.brace { position: relative; height: var(--bh); margin: calc(var(--bh) * -0.62) 0 calc(var(--bh) * -0.3); pointer-events: none; z-index: 3; overflow: hidden; }
.brace .tube { position: absolute; left: -8%; width: 116%; top: 50%; height: 46px; transform: translateY(-50%) rotate(var(--angle)); background: linear-gradient(180deg, var(--green-hi) 0 14%, var(--green) 30% 62%, var(--green-lo) 88% 100%); box-shadow: 0 0 0 2px var(--ink); display: flex; align-items: center; justify-content: center; }
.stencil { font: italic 800 1.5rem/1 var(--display); color: var(--ink); white-space: nowrap; letter-spacing: 0.01em; }
.cp { position: absolute; top: -9px; width: 34px; height: 64px; background: var(--clamp); box-shadow: inset 0 0 0 2px #444d48, inset 0 8px 0 #3a423e; }
.cp::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--steel); }
.cp-a { left: 14%; }
.cp-b { right: 14%; }
.brace-2 { margin: 0 0 calc(-1 * (var(--bh) / 2 + var(--tan) * 50vw)); }
.brace-2 .tube { transform: translateY(-50%) rotate(calc(var(--angle) * -1)); }

/* what we do: their words + facts beside the corner-house photo */
.work { max-width: var(--max); margin: 0 auto; padding: 90px var(--gut) 40px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 32px; align-items: end; }
.work-words { grid-column: 1 / 7; }
.fb-label { margin: 0 0 8px; font-weight: 600; color: var(--ink-2); }
.intro { font-size: clamp(2.4rem, 4.6vw, 4.6rem); }
.facts { margin: 36px 0 0; border-top: 3px solid var(--ink); max-width: 30rem; }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.88rem; font-weight: 600; color: var(--ink-2); }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: 1.08rem; line-height: 1.4; }
.latest { grid-column: 7 / 13; }
.latest img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.latest figcaption { margin-top: 10px; font-size: 0.95rem; line-height: 1.4; padding-top: 8px; border-top: 3px solid var(--ink); }

/* jobs: a run of photos stepping up along the brace angle */
.jobs { max-width: var(--max); margin: 0 auto; padding: 80px var(--gut) 40px; }
.jobs h2 { font-size: clamp(2rem, 3.4vw, 3.2rem); max-width: 14ch; }
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: start; }
.steps li { margin-top: calc((3 - var(--i)) * 52px); }
.steps li:nth-child(4n+1) { --i: 0; } .steps li:nth-child(4n+2) { --i: 1; } .steps li:nth-child(4n+3) { --i: 2; } .steps li:nth-child(4n+4) { --i: 3; }
.steps img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.steps figcaption, .hero-photo figcaption { line-height: 1.4; }
.steps figcaption { margin-top: 10px; font-size: 0.95rem; padding-top: 8px; border-top: 3px solid var(--ink); }
.more { margin: 34px 0 0; font-weight: 600; }
.more a { text-decoration-thickness: 2px; }

/* coverage */
.areas { max-width: var(--max); margin: 0 auto; padding: 70px var(--gut) 60px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px 32px; align-items: baseline; }
.areas h2 { grid-column: 1 / 7; font-size: clamp(1.9rem, 3.2vw, 2.9rem); }
.areas-note { grid-column: 7 / 13; margin: 0; font-size: 1.1rem; }

/* quote: a dark slab cut on the brace angle; the form sits in it, the number is a braced bar */
.quote { background: var(--night); color: var(--on-night); padding: calc(var(--tan) * 100vw + 90px) max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))) 96px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px 64px; align-items: center; clip-path: polygon(0 0, 100% calc(var(--tan) * 100vw), 100% 100%, 0 100%); }
.quote h2 { font-size: clamp(2.4rem, 4.4vw, 4rem); margin-bottom: 14px; }
.qform { display: grid; gap: 6px; max-width: 40rem; }
.q-note { margin: 0 0 10px; font-weight: 600; color: var(--on-night); background: var(--night-2); padding: 10px 12px; border-left: 5px solid var(--green); }
.qform label { font-weight: 600; margin-top: 8px; display: block; color: var(--on-night); }
.qform input, .qform textarea { font: inherit; color: var(--on-night); background: transparent; border: 2px solid var(--on-night-2); border-radius: 0; padding: 11px 12px; width: 100%; margin-top: 6px; }
.qform textarea { resize: vertical; }
.qform ::placeholder { color: var(--on-night-2); opacity: 0.85; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.qform button { margin-top: 18px; justify-self: start; font: italic 800 1.25rem/1 var(--display); background: var(--green); color: var(--ink); border: 0; padding: 17px 28px 16px; cursor: pointer; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.qform button:hover { background: var(--green-hi); }
.qform button:focus-visible { outline-color: var(--on-night); }
.status { margin: 6px 0 0; font-weight: 600; min-height: 1.6em; color: var(--on-night); }
.status a { color: var(--green); }
.quote-reach { align-self: center; }
.ring-k { margin: 0 0 18px; color: var(--on-night-2); font-weight: 600; font-size: 1.05rem; }
.ring { margin: 0; }
.ring a { display: inline-block; background: var(--green); color: var(--ink); font: italic 800 clamp(2.6rem, 4.6vw, 5.4rem)/1 var(--display); text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; padding: 18px 28px 22px; transform: rotate(var(--angle)); transform-origin: left center; white-space: nowrap; box-shadow: 0 0 0 2px var(--ink); }
.ring a:hover { background: var(--green-hi); }
.links { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 10px; }
.links a { color: var(--on-night); overflow-wrap: anywhere; }

/* footer */
.foot { background: var(--night-2); color: var(--on-night-2); border-top: 1px solid #2d3631; }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 36px var(--gut) 40px; display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: baseline; }
.foot p { margin: 0; }
.foot a { color: var(--on-night); }
.foot-mark { font: italic 800 1.2rem/1.2 var(--display); color: #fff; }
.credit { margin-left: auto; font-size: 0.92rem; }
.credit a { color: var(--on-night); }

.bar { display: none; }

/* motion: the brace slides in along its own axis; content never waits */
@media (prefers-reduced-motion: no-preference) {
  .js .brace .tube { transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1); }
  .js .brace-1:not(.in) .tube { transform: translateY(-50%) rotate(var(--angle)) translateX(-38%); }
  .js .brace-2:not(.in) .tube { transform: translateY(-50%) rotate(calc(var(--angle) * -1)) translateX(38%); }
}

/* tablet */
@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 44vw); }
  .hero-words { padding-right: 28px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(odd) { margin-top: 52px; } .steps li:nth-child(even) { margin-top: 0; }
  .work, .areas { grid-template-columns: minmax(0, 1fr); }
  .work-words, .latest, .areas h2, .areas-note { grid-column: 1; }
  .latest { margin-top: 40px; max-width: 810px; }
  .quote { grid-template-columns: minmax(0, 1fr); }
  .quote-reach { order: -1; }
}

/* phone: designed at 390 */
@media (max-width: 760px) {
  :root { --angle: -10deg; --tan: 0.1763; --bh: calc(var(--tan) * 100vw + 50px); }
  body { font-size: 16.5px; padding-bottom: 64px; }
  .top { flex-wrap: wrap; gap: 10px 14px; padding-top: 12px; padding-bottom: 10px; }
  .logo { font-size: 0.92rem; }
  .call-tops { margin-left: auto; }
  .call-top { font-size: 1rem; }
  .call-top span { display: none; }
  .nav { order: 3; width: 100%; margin: 0; gap: 22px; border-top: 1px solid var(--line); padding-top: 6px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .hero-words { padding: 22px var(--gut) 26px; }
  .hero h1 { font-size: 2.45rem; max-width: none; }
  .trio { margin-top: 18px; }
  .cta { margin-top: 24px; }
  .hero-photo figcaption { position: static; max-width: none; padding: 10px var(--gut) 12px; }
  .brace-1 { margin: calc(var(--bh) * -0.18) 0 calc(var(--bh) * -0.3); }
  .brace .tube { height: 34px; }
  .stencil { font-size: 1.05rem; }
  .cp { width: 24px; height: 50px; top: -8px; }
  .cp-a { left: 6%; } .cp-b { right: 6%; }
  .work { padding-top: 54px; }
  .jobs { padding-top: 44px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 34px; margin-top: 44px; }
  .steps li:nth-child(n) { margin-top: 0; }
  .steps li:nth-child(odd) { margin-right: 28px; } .steps li:nth-child(even) { margin-left: 28px; }
  .areas { padding-bottom: 80px; }
  .quote { grid-template-columns: minmax(0, 1fr); padding: calc(var(--tan) * 100vw + 56px) var(--gut) 56px; gap: 40px; }
  .ring a { display: block; text-align: center; font-size: 2.5rem; padding: 16px 12px 18px; transform-origin: center; }
  .ring-k { margin-bottom: 22px; }
  .links { margin-top: 36px; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .credit { margin-left: 0; width: 100%; }
  .bar { display: grid; grid-template-columns: 1fr auto; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--night); border-top: 3px solid var(--green); }
  .bar a { display: flex; align-items: center; justify-content: center; min-height: 58px; text-decoration: none; font: italic 800 1.15rem/1 var(--display); }
  .bar-call { color: var(--ink); background: var(--green); clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); padding-right: 14px; }
  .bar-quote { color: #fff; padding: 0 22px; }
}
