/* Bedrock and Trowel Concrete: sample site. Design style: Poster.
   Giant condensed headlines, a villain to beat (the crack), hand-written notes,
   a fan of cards that deals itself as you scroll. --ink and --accent are the two
   brand colors that "Make it yours" changes. */
:root {
  --ink: #17191c;
  --accent: #ff5a1f;
  --bone: #efece6;
  --paper: #f8f6f1;
  --grey: #c9c6bf;
  --steel: #5c6672;
  --yellow: #f2c230;
  --head: "Anton", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --wrap: 1240px;
  --gut: clamp(18px, 4vw, 44px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
section { padding: clamp(64px, 9vw, 120px) 0; }

.sample { background: #000; color: #fff; font-size: 13.5px; text-align: center; padding: 8px 16px; position: relative; z-index: 60; }
.sample a { font-weight: 700; }

/* Type */
.h1, .h2, .h3, .logo, .tag, .kick { font-family: var(--head); font-weight: 400; text-transform: uppercase; line-height: .95; letter-spacing: .005em; }
.h1 { font-size: clamp(54px, 9.2vw, 136px); }
.h2 { font-size: clamp(44px, 7vw, 104px); }
.h3 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1; }
.kick { font-size: clamp(18px, 2vw, 26px); line-height: 1.05; }
.tag { display: inline-block; padding: 6px 10px 5px; background: color-mix(in srgb, var(--accent) 22%, var(--paper)); font-size: 14px; letter-spacing: .04em; }
.hand { font-family: var(--hand); font-weight: 600; font-size: 24px; line-height: 1.1; }
.center { text-align: center; }
.fine { margin-top: 14px; font-size: 13.5px; opacity: .65; }
.accent { color: var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); font: 700 15.5px var(--body); text-decoration: none; cursor: pointer; transition: transform .3s var(--ease), background .3s, color .3s; }
.btn:hover { transform: translateY(-2px); background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.line { background: none; color: var(--ink); }
.btn.line::after { content: "\2192"; }
.btn.hot { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.hot:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Header */
header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gut); }
.logo { display: block; max-width: 7.2em; font-size: 23px; line-height: .9; text-decoration: none; }
#nav { display: flex; gap: 26px; font-size: 15px; font-weight: 600; }
#nav a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
#nav a:hover, #nav a[aria-current] { border-color: var(--accent); }
.menu { display: none; border: 0; background: none; font: 700 15px var(--body); cursor: pointer; }

/* Hero */
.hero { padding: clamp(28px, 4vw, 56px) 0 0; }
.hero .grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: end; }
.hero .kick { margin-top: 16px; }
.hero .lede { margin-top: 28px; max-width: 34ch; }
.hero .row { margin-top: 22px; }
.villain { position: relative; background: color-mix(in srgb, var(--accent) 18%, var(--paper)); border-radius: 6px; padding: 12px 12px 0; }
.villain svg { display: block; width: 100%; height: auto; }
.villain .hand { position: absolute; left: -18%; top: 34%; width: 8.5em; transform: rotate(-6deg); }
.villain .hand svg { width: 64px; margin: 2px 0 0 60px; }
.crack { stroke-dasharray: 600; stroke-dashoffset: 600; animation: crack 6s var(--ease) infinite; }
@keyframes crack { 0% { stroke-dashoffset: 600; } 35%, 62% { stroke-dashoffset: 0; } 80%, 100% { stroke-dashoffset: 600; } }
.trowel { transform-origin: 330px 420px; animation: trowel 6s var(--ease) infinite; }
@keyframes trowel { 0%, 58% { transform: translate(60px, 40px) rotate(14deg); } 68% { transform: translate(-40px, -160px) rotate(-18deg); } 80% { transform: translate(-70px, -40px) rotate(-6deg); } 100% { transform: translate(60px, 40px) rotate(14deg); } }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: clamp(28px, 4vw, 48px); }
.points li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--bone); font: 400 clamp(15px, 1.5vw, 19px) var(--head); text-transform: uppercase; letter-spacing: .02em; }
.points li::before { content: ""; flex: none; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--ink); }

/* The fan of cards. With motion on and a wide screen, the section pins and each card
   is dealt in as --p goes from 0 to 1 (set by site.js). Otherwise it is a plain grid. */
.fan { padding: clamp(64px, 9vw, 120px) 0; }
.fan .head { text-align: center; }
.fan .head .kick { margin-top: 10px; }
.deck { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 36px; }
.fcard { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-height: 300px; padding: 26px 24px; border-radius: 4px; text-decoration: none; box-shadow: 0 10px 30px #0002; transition: translate .4s var(--ease); }
.fcard:hover { translate: 0 -14px; }
.fcard .hand { max-width: 12em; }
.fcard svg { width: 120px; height: auto; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.fcard:hover svg { transform: scale(1.08) rotate(-3deg); }
.k1 { background: var(--accent); color: #fff; }
.k2 { background: var(--grey); }
.k3 { background: var(--ink); color: var(--paper); }
.k4 { background: var(--yellow); }
.k5 { background: var(--steel); color: #fff; }
.k6 { background: #fff; }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .fan.live { height: 330vh; padding: 0; }
  .fan.live .pin { position: sticky; top: 0; height: 100vh; display: grid; align-content: center; overflow: hidden; }
  .fan.live .deck { display: block; position: relative; height: 380px; margin-top: 30px; }
  .fan.live .fcard { position: absolute; top: 0; left: calc(var(--i) * (100% - 270px) / 5); width: 270px; height: 340px; min-height: 0; transform: translateY(calc((1 - var(--p, 0)) * 120vh)) rotate(calc(var(--r) * var(--p, 0) + (1 - var(--p, 0)) * 24deg)); }
}

/* Feature: missed-call text back */
.feature { background: var(--ink); color: var(--paper); }
.feature .tag { background: var(--accent); color: #fff; }
.feature .grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature .h2 { margin-top: 14px; }
.feature p.lede { margin-top: 20px; max-width: 44ch; opacity: .85; }
.feature .row { margin-top: 26px; }
.feature .fine { opacity: .55; }
.phone { position: relative; justify-self: center; width: min(330px, 100%); aspect-ratio: 9 / 17.5; padding: 14px; border-radius: 42px; background: #000; box-shadow: 0 0 0 2px #fff3, 0 30px 60px #0008; }
.phone.ring { animation: ring .5s linear 3; }
@keyframes ring { 25% { transform: rotate(-2.5deg); } 75% { transform: rotate(2.5deg); } }
.screen { position: relative; height: 100%; border-radius: 30px; background: var(--paper); color: var(--ink); overflow: hidden; display: flex; flex-direction: column; }
.screen .top { padding: 18px 16px 12px; background: var(--bone); text-align: center; font-size: 13px; font-weight: 700; }
.screen .top small { display: block; font-weight: 500; opacity: .6; }
.thread { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 14px 12px; font-size: 14px; line-height: 1.35; }
.thread > * { max-width: 84%; padding: 9px 12px; border-radius: 16px; opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .35s, transform .35s var(--ease); }
.thread > .show { opacity: 1; transform: none; }
.thread .us { align-self: flex-start; background: var(--bone); border-bottom-left-radius: 4px; }
.thread .them { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.thread .note { align-self: center; max-width: none; padding: 4px 10px; background: none; font-size: 12px; font-weight: 700; opacity: 0; }
.thread .note.show { opacity: .6; }
.thread .done { align-self: center; max-width: none; background: var(--ink); color: var(--paper); font: 400 15px var(--head); text-transform: uppercase; letter-spacing: .04em; }
.callcard { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; gap: 6px; text-align: center; background: var(--ink); color: var(--paper); transition: opacity .4s, visibility .4s; }
.callcard b { font: 400 34px var(--head); text-transform: uppercase; }
.callcard span { font-size: 14px; opacity: .7; }
.callcard i { justify-self: center; width: 54px; height: 54px; margin-top: 14px; border-radius: 50%; background: var(--accent); animation: pulse 1s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--accent) 30%, transparent); } }
.callcard.missed i { background: #555; animation: none; }
.callcard.gone { opacity: 0; visibility: hidden; }

/* Why us */
.why .head { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; }
.why .cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.why .card { padding: 24px 22px 28px; background: var(--bone); border-top: 6px solid var(--ink); }
.why .card:nth-child(2) { border-color: var(--accent); }
.why .card:nth-child(4) { border-color: var(--steel); }

.why .card .h3 { margin: 0 0 10px; }
.why .card p { font-size: 15.5px; }

/* Steps: text one side, photo the other, swapping sides each time */
.steps .item { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(28px, 4vw, 52px) 0; border-top: 2px solid var(--ink); }
.steps .item:nth-child(even) .pic { order: -1; }
.steps .tag { margin-bottom: 14px; }
.steps .kick { margin: 12px 0 14px; color: var(--accent); }
.steps p { max-width: 46ch; }
.pic { position: relative; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--bone); }
.pic.r1 { rotate: -1.5deg; } .pic.r2 { rotate: 1.5deg; }
.pic img, .pic .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #17191c10 0 16px, #17191c1f 16px 32px); font-size: 13px; font-weight: 700; opacity: .8; }
img + .ph { display: none; }
.cap { position: absolute; left: 10px; bottom: 10px; z-index: 2; padding: 5px 10px; background: var(--paper); color: var(--ink); font-size: 11.5px; font-weight: 700; }

/* Moving band */
.band { overflow: hidden; background: var(--accent); color: #fff; padding: 14px 0; font: 400 clamp(26px, 4vw, 52px) var(--head); text-transform: uppercase; white-space: nowrap; }
.band div { display: inline-block; animation: slide 28s linear infinite; }
.band span { margin: 0 .5em; }
.band span::after { content: "\00d7"; margin-left: 1em; opacity: .6; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Reviews */
.revs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.rev { padding: 24px; background: #fff; border: 2px solid var(--ink); font-size: 16px; }
.rev:nth-child(2) { rotate: -1deg; } .rev:nth-child(3) { rotate: 1deg; }
.rev small { display: block; margin-top: 14px; font-weight: 700; opacity: .55; }

/* Call to action and footer */
.cta { background: var(--ink); color: var(--paper); text-align: center; }
.cta .row { justify-content: center; margin-top: 28px; }
.cta .btn.line { color: var(--paper); border-color: var(--paper); }
.cta .hand { margin-top: 14px; color: var(--accent); }
footer { background: #0d0e10; color: #fff; padding: 56px 0 110px; font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot nav { display: grid; gap: 6px; }
.foot a { text-decoration: none; opacity: .8; } .foot a:hover { opacity: 1; }
.foot .logo { font-size: 30px; max-width: 6.4em; }
.foot b { display: block; margin-bottom: 8px; }
.credit { margin-top: 36px; padding-top: 18px; border-top: 1px solid #fff2; font-size: 13px; opacity: .6; }

/* Inner pages */
.top { padding: clamp(36px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); border-bottom: 2px solid var(--ink); }
.top p { margin-top: 18px; max-width: 48ch; font-size: 19px; }
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(28px, 4vw, 52px) 0; border-bottom: 2px solid var(--ink); }
.svc:nth-child(even) .pic { order: -1; }
.svc ul { margin: 16px 0 22px; display: grid; gap: 6px; }
.svc li { padding-left: 22px; position: relative; }
.svc li::before { content: ""; position: absolute; left: 0; top: .5em; width: 11px; height: 11px; background: var(--accent); }
.svc .price { margin-top: 10px; font: 400 22px var(--head); text-transform: uppercase; color: var(--accent); }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.nums div { padding: 22px; background: var(--bone); }
.nums b { display: block; font: 400 clamp(34px, 4.6vw, 64px)/1 var(--head); }
.nums span { font-size: 14.5px; font-weight: 600; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.map { border: 2px solid var(--ink); }
.map iframe { display: block; width: 100%; height: clamp(320px, 46vw, 540px); border: 0; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.three .fcard { min-height: 0; gap: 18px; justify-content: flex-start; }
.three li { font-weight: 600; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.form input, .form textarea { padding: 13px 14px; border: 2px solid var(--ink); border-radius: 0; background: #fff; font: 500 16px var(--body); }
.form textarea { min-height: 120px; resize: vertical; }
.list { display: grid; }
.list li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 2px solid var(--ink); }
.list span { font-weight: 600; opacity: .65; }
.list b { font: 400 22px var(--head); text-transform: uppercase; text-align: right; }

/* Things rise into place the first time they are on screen */
.rise { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.rise.in { opacity: 1; transform: none; }

/* Push to call: the number in the header on a wide screen, a fixed button on a phone */
.btn.tel::after { content: none; }
.callnow { display: none; position: fixed; left: 16px; bottom: 16px; z-index: 70; align-items: center; gap: 8px; padding: 13px 18px; border: 2px solid var(--ink); border-radius: 999px; background: var(--accent); color: #fff; font: 700 15px var(--body); text-decoration: none; box-shadow: 0 8px 24px #0005; }
.callnow svg { width: 18px; height: 18px; fill: currentColor; }

/* Chat icon. For show on this sample: it opens a short note, not a conversation. */
.yours .chat { order: -2; display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 10px; padding: 0; background: var(--ink); border-color: var(--ink); }
.yours .chat svg { width: 26px; height: 26px; fill: var(--paper); }
.yours .chat circle { fill: var(--ink); }
.chatnote { order: -3; width: min(240px, calc(100vw - 32px)); margin-bottom: 10px; padding: 12px 14px; background: #fff; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); font-size: 13.5px; }
.chatnote[hidden] { display: none; }

/* Make it yours */
.yours { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: grid; justify-items: end; }
.yours > button { padding: 13px 20px; border: 2px solid var(--ink); border-radius: 999px; background: var(--yellow); color: var(--ink); font: 700 15px var(--body); box-shadow: 0 8px 24px #0005; cursor: pointer; }
.panel { width: min(300px, calc(100vw - 32px)); margin-bottom: 10px; padding: 20px; background: #fff; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); display: grid; gap: 12px; color: var(--ink); }
.panel[hidden] { display: none; }
.panel strong { font: 400 26px var(--head); text-transform: uppercase; }
.panel label { display: grid; gap: 5px; font-size: 13.5px; font-weight: 700; }
.panel input[type=text] { padding: 10px 12px; border: 2px solid var(--ink); font: 500 16px var(--body); }
.swatches { display: flex; gap: 8px; }
.swatches button { width: 44px; height: 32px; border: 2px solid #fff; box-shadow: 0 0 0 1px #0003; cursor: pointer; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink); }
.panel p { font-size: 13.5px; opacity: .7; }
.panel .reset { justify-self: start; padding: 0; border: 0; background: none; font: 600 13.5px var(--body); text-decoration: underline; cursor: pointer; }

@media (max-width: 900px) {
  .hero .grid, .feature .grid, .steps .item, .svc, .split { grid-template-columns: 1fr; }
  .steps .item:nth-child(even) .pic, .svc:nth-child(even) .pic { order: 0; }
  .villain { max-width: 380px; margin-left: auto; }
  .villain .hand { left: -40%; }
  .why .cards, .nums { grid-template-columns: repeat(2, 1fr); }
  .why .head { grid-template-columns: 1fr; }
  .points, .revs, .three, .foot { grid-template-columns: 1fr; }
  .menu { display: block; }
  .btn.tel { display: none; }
  .callnow { display: inline-flex; }
  #nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 8px var(--gut) 18px; background: var(--paper); border-bottom: 2px solid var(--ink); }
  #nav.open { display: flex; }
  #nav a { padding: 12px 0; font-size: 18px; }
  .bar .btn { padding: 10px 16px; font-size: 14px; }
}
@media (max-width: 520px) {
  .fcard { min-height: 170px; gap: 22px; }
  .villain .hand { position: static; width: auto; transform: none; padding: 0 0 8px; }
  .villain .hand svg { display: none; }
  .why .cards, .nums { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
  .crack { animation: none; stroke-dashoffset: 0; }
  .trowel, .band div, .callcard i { animation: none; }
  html { scroll-behavior: auto; }
}

/* Phones: push to call is a bar across the bottom of the screen, where a thumb reaches it.
   The chat icon and "Make it yours" sit just above it. */
@media (max-width: 900px) {
  .callnow { left: 0; right: 0; bottom: 0; justify-content: center; padding: 16px; border-radius: 0; border-width: 2px 0 0; font-size: 16px; }
  .yours { bottom: 70px; }
  footer { padding-bottom: 160px; }
}
