/* Bold Brief — brief builder (contact section). */
.contact-layout.bb { grid-template-columns: 1.15fr .85fr; gap: 6%; align-items: start; }
.bb-form { position: relative; }
.bb-head { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; font: 700 11px/1 var(--sans); letter-spacing: 1.5px; font-variant-numeric: tabular-nums; }
.bb-bar { flex: 1; height: 2px; background: #191a1726; position: relative; overflow: hidden; }
.bb-bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(.25); transition: transform .7s cubic-bezier(.7, 0, .2, 1); }

.bb-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.js .bb-step:not(.is-current) { display: none; }
.bb-step legend {
  padding: 0; margin-bottom: 22px; font: 600 clamp(26px, 2.6vw, 40px)/1.08 var(--sans); font-stretch: 88%; letter-spacing: -.035em;
}
.m-on .bb-step.is-current legend { animation: bbIn .7s cubic-bezier(.16, 1, .3, 1) both; }
.m-on .bb-step.is-current .bb-chip, .m-on .bb-step.is-current .bb-text { animation: bbIn .6s cubic-bezier(.16, 1, .3, 1) both; }
.m-on .bb-step.is-current.from-back legend, .m-on .bb-step.is-current.from-back .bb-chip, .m-on .bb-step.is-current.from-back .bb-text { animation-name: bbInBack; }
.bb-step .bb-chip:nth-child(1) { animation-delay: .08s; } .bb-step .bb-chip:nth-child(2) { animation-delay: .12s; }
.bb-step .bb-chip:nth-child(3) { animation-delay: .16s; } .bb-step .bb-chip:nth-child(4) { animation-delay: .2s; }
.bb-step .bb-chip:nth-child(5) { animation-delay: .24s; } .bb-step .bb-chip:nth-child(6) { animation-delay: .28s; }
.bb-step .bb-text { animation-delay: .3s; }
@keyframes bbIn { from { opacity: 0; translate: 40px 0; } }
@keyframes bbInBack { from { opacity: 0; translate: -40px 0; } }

.bb-chips { display: flex; flex-wrap: wrap; gap: 9px; }
form label.bb-chip, .bb-chip {
  position: relative; display: inline-flex; align-items: center; margin: 0; min-height: 46px; padding: 12px 18px;
  border: 1.5px solid var(--ink); border-radius: 40px; background: transparent; cursor: pointer;
  font: 500 14px/1.2 var(--sans); color: var(--ink); text-align: left;
  transition: background .25s, color .25s, scale .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s;
}
.bb-chip:hover { background: #191a1712; }
.bb-chip:active { scale: .95; }
form .bb-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; padding: 0; border: 0; }
.bb-chip:has(input:checked), .bb-chip[aria-pressed="true"] { background: var(--ink); color: var(--lime); box-shadow: 4px 4px 0 #191a1740; }
.bb-chip:has(input:checked) span:before, .bb-chip[aria-pressed="true"] span:before { content: "✓ "; }
.bb-chip:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }

form label.bb-text { display: block; margin: 22px 0 0; font-size: 12px; }
.bb-text textarea, .bb-text input { font-size: 17px; padding: 12px 0; margin-top: 6px; border-bottom: 1.5px solid var(--ink); }
.bb-text textarea::placeholder, .bb-text input::placeholder { color: #191a1780; }
.bb-step[data-step="4"] .bb-text input { font: 600 clamp(24px, 2.4vw, 34px)/1.2 var(--sans); letter-spacing: -.02em; }
.bb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.bb-nav { display: flex; align-items: center; gap: 10px; margin-top: 30px; }
.bb-nav button[hidden] { display: none; }
.bb-back { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; border: 1.5px solid var(--ink) !important; background: transparent; font-size: 20px; transition: background .25s; }
.bb-back:hover { background: #191a1714; }
.bb-next, .bb-nav .form-submit {
  flex: 1; display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 24px;
  border-radius: 40px; background: var(--ink); color: var(--paper); border: 0; font: 600 15px/1 var(--sans);
  transition: opacity .3s, translate .3s;
}
.bb-nav .form-submit span:last-child, .bb-next span:last-child { color: var(--lime); font-size: 20px; }
.bb-next:disabled { opacity: .3; cursor: not-allowed; }
.bb-next:not(:disabled):hover span:last-child { translate: 4px 0; transition: translate .3s; }
.bb-form small { margin-top: 16px; }
#brief-preview { animation: bbIn .6s cubic-bezier(.16, 1, .3, 1); }
#brief-preview pre { display: none; }
#brief-preview strong { display: block; margin-bottom: 14px; }

/* ---------- The paper ---------- */
.bb-paper {
  position: sticky; top: 30px; background: #fbfbf6; color: var(--ink); padding: 28px 28px 24px; min-height: 420px;
  transform: rotate(2.2deg); box-shadow: 0 30px 50px -22px #19210a99, 0 2px 0 #fff inset;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow: hidden;
  background-image: repeating-linear-gradient(transparent 0 31px, #191a170d 31px 32px);
  background-position: 0 92px;
}
.bb-paper:before { content: ""; position: absolute; left: 50%; top: -9px; width: 90px; height: 24px; margin-left: -45px; background: #c4f43199; transform: rotate(-3deg); }
.bp-top { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.bp-top svg { width: 26px; height: 26px; fill: var(--ink); }
.bp-title { font: 800 26px/1 var(--sans); font-stretch: 80%; letter-spacing: -.03em; flex: 1; }
.bp-no { font-size: 11px; letter-spacing: 1px; }
.bb-paper dl { margin: 14px 0 0; }
.bb-paper dl > div { padding: 9px 0; border-bottom: 1px dashed #191a1733; transition: background .4s; }
.bb-paper dt { font-size: 9px; letter-spacing: 1.6px; text-transform: uppercase; color: #191a1799; margin-bottom: 5px; }
.bb-paper dd { margin: 0; font-size: 13px; line-height: 1.55; min-height: 1.55em; color: #191a1755; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.bb-paper .filled dd { color: var(--ink); }
.bb-paper .filled dt:before { content: "✓ "; color: #5f8a00; }
.bp-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; font-size: 9px; letter-spacing: .5px; color: #191a1799; }
.bp-stamp {
  position: absolute; right: 22px; bottom: 86px; padding: 10px 18px 8px; border: 3px solid var(--ink); border-radius: 8px;
  color: var(--ink); text-align: center; transform: rotate(-14deg); opacity: 0; scale: 3; pointer-events: none;
  mix-blend-mode: multiply; background: #c4f431cc;
}
.bp-stamp b { display: block; font: 800 34px/1 var(--sans); font-stretch: 78%; letter-spacing: -.02em; }
.bp-stamp small { font-size: 8px; letter-spacing: 2px; }
.bb-paper.stamped .bp-stamp { opacity: 1; scale: 1; transition: scale .45s cubic-bezier(.5, 0, .75, 0), opacity .2s; }
.m-on .bb-paper.stamped { animation: paperHit .5s .4s; }
@keyframes paperHit { 30% { translate: 0 6px; } 60% { translate: 0 -2px; } }

/* ---------- Contact details row ---------- */
.contact-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; margin-top: 70px; padding-top: 30px; border-top: 1px solid #191a1740; }
.contact-meta p { margin: 0; font-size: 13px; line-height: 1.6; }
.contact-meta .social-links { margin: 0; }

@media (max-width: 900px) {
  .contact-layout.bb { grid-template-columns: 1fr; gap: 45px; }
  .bb-paper { position: relative; top: 0; max-width: 440px; min-height: 0; transform: rotate(1.4deg); }
}
@media (max-width: 640px) {
  .bb-step legend { font-size: 27px; }
  .bb-chip, form label.bb-chip { font-size: 13px; padding: 11px 15px; min-height: 44px; }
  .bb-paper { padding: 24px 20px 20px; }
  .bp-stamp { right: 14px; bottom: 44px; }
  .contact-meta { margin-top: 50px; display: block; }
  .contact-meta > * + * { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .bb-paper.stamped .bp-stamp { scale: 1; }
}
