/* Contact, thanks and 404: the note form, the cards, the questions, the lost page.
   Every selector starts with .ct- so nothing leaks into shared pieces. */

/* ---------- page heads ---------- */
.ct-phead{min-height:min(66vh,680px);min-height:min(66svh,680px)}
.ct-phead--short{min-height:min(58vh,600px);min-height:min(58svh,600px)}
@media (max-width:900px){
  .ct-phead,.ct-phead--short{min-height:auto}
  /* contact only: a shorter engraving on phones, so both call buttons land on the first screen */
  .ct-phead .phead__art{height:18svh}
  .ct-phead:not(.phead--photo) .phead__in{padding-top:calc(var(--nav-h) + 18svh + 8px)}
}
.ct-phead .phead__extra,.ct-phead--short .phead__extra{margin-top:34px}
.ct-back .ic svg{transform:scaleX(-1)}
/* the two call buttons sit right under the h1 and its rule, above the lede, at every width (the lede offers a call first) */
/* v3: Email us and Call us, one number (Grant's), side by side from 481 px, then the lede under them */
.ct-calls{margin-top:28px;margin-bottom:24px}
@media (max-width:480px){.ct-calls{flex-direction:column;align-items:stretch}.ct-calls .btn{justify-content:flex-start}}

/* ---------- the note: heading on the left, the form sheet on the right ---------- */
.ct-send__grid{display:grid;grid-template-columns:minmax(0,4.4fr) minmax(0,7.6fr);gap:clamp(40px,6vw,112px);align-items:start}
.ct-send__aside{position:sticky;top:calc(var(--nav-h) + 40px)}  /* rides beside the form while it scrolls (901 px and up; static below) */
.ct-send__rule{display:block;width:72px;height:2px;background:var(--gold);margin-top:28px}
.ct-send__art{margin-top:clamp(28px,5vh,56px);width:min(100%,330px);aspect-ratio:520/800}
.ct-send__art svg{width:100%;height:100%}
.ct-send__art{-webkit-mask-image:radial-gradient(50% 55% at 50% 48%,#000 80%,transparent 100%);mask-image:radial-gradient(50% 55% at 50% 48%,#000 80%,transparent 100%)}
.ct-send__art:not(.is-on) .board .draw,.ct-send__art:not(.is-on) .board .fade,.ct-send__art:not(.is-on) .board .pop{animation-play-state:paused}

.ct-sheet{position:relative;background:var(--white);border:1px solid var(--line);border-radius:10px;padding:clamp(28px,4vw,60px);box-shadow:0 30px 60px -48px rgba(74,56,20,.55)}
.ct-sheet::before{content:"";position:absolute;left:clamp(28px,4vw,60px);top:-1px;width:72px;height:3px;background:var(--gold);border-radius:0 0 2px 2px}
.ct-sheet.is-done{border-color:transparent;padding:0;box-shadow:none;background:transparent}
.ct-sheet.is-done::before{content:none}

.ct-form{display:grid;gap:clamp(28px,4vh,40px)}
.ct-form[hidden],.ct-fail[hidden]{display:none}
.ct-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px clamp(20px,2.4vw,32px)}
.ct-field{min-width:0}
.ct-label{display:block;font-family:var(--f-display);font-weight:700;font-size:16px;line-height:1.35;letter-spacing:-.005em;color:var(--charcoal);margin:0 0 10px;padding:0}
.ct-soft{font-family:var(--f-text);font-weight:500;font-size:14.5px;letter-spacing:0;color:rgba(63,62,64,.78);margin-left:3px}

.ct-input{display:block;width:100%;height:52px;margin:0;padding:0 16px;font-family:var(--f-text);font-weight:500;font-size:17px;line-height:1.4;color:var(--charcoal);background:var(--white);border:1px solid var(--gold-deep);border-radius:8px;box-shadow:none;-webkit-appearance:none;appearance:none;transition:border-color var(--t-micro) ease,box-shadow var(--t-micro) ease,background-color var(--t-micro) ease}
/* control edges are --gold-deep (3.6:1 on white) so every field and ring passes WCAG 1.4.11 */
.ct-input--area{height:auto;min-height:148px;padding:14px 16px;resize:vertical;line-height:1.55}
.ct-input:hover{border-color:var(--ink)}
.ct-input:focus{outline:none}
.ct-input:focus-visible,.ct-input:focus{border-color:var(--night);box-shadow:0 0 0 1px var(--night),0 0 0 5px rgba(17,28,26,.12)}
.ct-input[aria-invalid="true"]{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink);background:var(--wash)}
.ct-input[aria-invalid="true"]:focus{border-color:var(--night);box-shadow:0 0 0 1px var(--night),0 0 0 5px rgba(17,28,26,.12)}

.ct-help{margin-top:12px;font-size:14.5px;line-height:1.5;color:rgba(63,62,64,.82)}
.ct-err{display:flex;align-items:flex-start;gap:9px;margin:0;font-size:14.5px;line-height:1.45;font-weight:600;color:var(--charcoal)}
.ct-err:not(:empty){margin-top:10px;animation:ct-err-in .3s var(--ease) both}
.ct-err:not(:empty)::before{content:"";flex:none;width:14px;height:2px;margin-top:.7em;background:var(--gold-deep);border-radius:2px}
@keyframes ct-err-in{from{opacity:0;transform:translateY(-4px)}}

/* chips: real checkboxes and radios, the label is the chip */
.ct-set{border:0;margin:0;padding:0;min-width:0}
.ct-set>legend{padding:0;margin-bottom:14px;float:none}
.ct-chips{display:flex;flex-wrap:wrap;gap:12px}
.ct-chip{position:relative;display:inline-flex;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ct-chip input{position:absolute;left:0;top:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.ct-chip__in{display:inline-flex;align-items:center;gap:12px;min-height:56px;padding:10px 22px 10px 12px;border:1px solid var(--gold-deep);border-radius:999px;background:var(--white);font-weight:600;font-size:16px;line-height:1.25;color:var(--charcoal);-webkit-user-select:none;user-select:none;transition:background-color .25s ease,border-color .25s ease,box-shadow .25s ease,transform .25s var(--ease)}
.ct-chip:hover .ct-chip__in{border-color:var(--ink);box-shadow:0 10px 20px -16px rgba(74,56,20,.6)}
.ct-chip:active .ct-chip__in{transform:scale(.97)}
.ct-chip input:checked+.ct-chip__in{background:var(--wash);border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.ct-chip input:focus-visible+.ct-chip__in{outline:2px solid var(--night);outline-offset:3px}
.ct-dot{position:relative;flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;border:1px solid var(--gold-deep)}
.ct-dot::before{content:"";position:absolute;inset:-1px;border-radius:50%;background:var(--ink);transform:scale(0);transition:transform .38s var(--ease-spring)}
/* pick any (checkboxes) gets rounded squares; pick one (radios) keeps the round dot */
.ct-chip input[type="checkbox"]+.ct-chip__in .ct-dot,.ct-chip input[type="checkbox"]+.ct-chip__in .ct-dot::before{border-radius:5px}
.ct-dot svg{position:relative;width:20px;height:20px;fill:none;stroke:var(--white);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.ct-dot path{stroke-dasharray:1 1.02;stroke-dashoffset:1.01;transition:stroke-dashoffset .32s var(--ease) .1s}
.ct-chip input:checked+.ct-chip__in .ct-dot::before{transform:scale(1)}
.ct-chip input:checked+.ct-chip__in .ct-dot path{stroke-dashoffset:0}

/* submit */
.ct-submit{padding-top:clamp(24px,3.4vh,32px);border-top:1px solid var(--line-soft)}
.ct-status .ct-fail,.ct-note{margin-top:18px}
.ct-btn{min-height:60px;padding:10px 30px 10px 10px;font-size:14px}
.ct-btn .ic{width:40px;height:40px;position:relative}
.ct-btn .ic svg{width:19px;height:19px;transition:transform .35s var(--ease)}
.ct-btn:hover .ic svg{transform:translateX(3px)}
.ct-btn:disabled{cursor:progress;transform:none;opacity:.9}
.ct-btn.is-sending .ic svg{opacity:0}
.ct-btn.is-sending .ic::after{content:"";position:absolute;inset:11px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:var(--white);animation:ct-spin .8s linear infinite}
@keyframes ct-spin{to{transform:rotate(360deg)}}
.ct-fail{padding:16px 20px;border-left:3px solid var(--gold-deep);border-radius:0 8px 8px 0;background:var(--wash);font-weight:600;font-size:15.5px;line-height:1.55;color:var(--charcoal);max-width:56ch}
.ct-fail a{overflow-wrap:anywhere}
.ct-note{max-width:none;text-wrap:pretty;color:rgba(63,62,64,.86)}
.ct-note .link{color:var(--charcoal)}

/* success: the form turns into a gold panel with a check drawn on */
.ct-done{position:relative;overflow:hidden;isolation:isolate;display:flex;flex-direction:column;justify-content:center;min-height:clamp(380px,52vh,520px);padding:clamp(40px,6vw,84px) clamp(28px,5vw,72px);background:var(--gold);color:var(--night);border-radius:10px;outline:none}
.ct-done[hidden]{display:none}
.ct-done__art{position:absolute;top:0;right:0;bottom:0;width:44%;z-index:-1;pointer-events:none;opacity:.95;-webkit-mask-image:linear-gradient(to right,transparent,#000 40%);mask-image:linear-gradient(to right,transparent,#000 40%)}
.ct-done__art svg{width:100%;height:100%}
.ct-done__mark{width:clamp(76px,8vw,104px);height:auto;margin-bottom:30px;overflow:visible}
.ct-done__ring,.ct-done__tick{fill:none;stroke:var(--white);stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1 1.02;stroke-dashoffset:1.01}
.ct-done__ring{stroke-width:2.4;opacity:.75}
.ct-done__tick{stroke-width:2.8}
.ct-done.is-in .ct-done__ring{stroke-dashoffset:0;transition:stroke-dashoffset .8s var(--ease)}
.ct-done.is-in .ct-done__tick{stroke-dashoffset:0;transition:stroke-dashoffset .55s var(--ease) .6s}
.ct-done .ct-done__h{color:var(--white)}
.ct-done__p{margin-top:18px;color:var(--night);text-wrap:balance}
.ct-done__h,.ct-done__p{max-width:min(26ch,52%)}
.ct-done__h:focus{outline:none}
.ct-done__h,.ct-done__p{opacity:0;transform:translateY(10px);transition:opacity .6s ease,transform .7s var(--ease)}
.ct-done.is-in .ct-done__h{opacity:1;transform:none;transition-delay:.35s}
.ct-done.is-in .ct-done__p{opacity:1;transform:none;transition-delay:.5s}

/* the card buttons are white pills made for gold; on this white field they take the dark pill, as on the home page */

/* ---------- questions ---------- */
.ct-faq__grid{display:grid;grid-template-columns:minmax(0,4.4fr) minmax(0,7.6fr);gap:clamp(40px,6vw,112px);align-items:start}
.ct-faq__head{position:sticky;top:calc(var(--nav-h) + 48px)}
.ct-qs{border-top:1px solid var(--line);interpolate-size:allow-keywords}
.ct-q{border-bottom:1px solid var(--line)}
.ct-q>summary{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:44px;padding:clamp(22px,3.4vh,30px) 0;list-style:none;cursor:pointer;font-family:var(--f-display);font-weight:700;font-size:clamp(19px,1.55vw,24px);line-height:1.25;letter-spacing:-.012em;color:var(--charcoal);-webkit-tap-highlight-color:transparent}
.ct-q>summary::-webkit-details-marker{display:none}
.ct-q>summary::marker{content:""}
.ct-q>summary:focus-visible{outline-offset:6px}
.ct-pm{position:relative;flex:none;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);transition:background-color .3s ease,border-color .3s ease,transform .45s var(--ease)}
.ct-pm::before,.ct-pm::after{content:"";position:absolute;left:50%;top:50%;width:14px;height:2px;margin:-1px 0 0 -7px;border-radius:2px;background:var(--gold-deep);transition:transform .4s var(--ease),background-color .3s ease}
.ct-pm::after{transform:rotate(90deg)}
.ct-q>summary:hover .ct-pm{border-color:var(--gold)}
.ct-q[open] .ct-pm{background:var(--gold);border-color:var(--gold);transform:rotate(180deg)}
.ct-q[open] .ct-pm::before,.ct-q[open] .ct-pm::after{background:var(--white)}
.ct-q[open] .ct-pm::after{transform:rotate(90deg) scaleX(0)}
.ct-q__a{padding:0 64px clamp(26px,3.8vh,36px) 0}
.ct-q__a p{max-width:60ch}
.ct-q__a .ct-q__more{margin-top:16px}
@supports selector(::details-content){
  .ct-q::details-content{block-size:0;overflow:hidden;transition:block-size .45s var(--ease),content-visibility .45s allow-discrete}
  .ct-q[open]::details-content{block-size:auto}
}

/* ---------- 404: the ways back ---------- */
.ct-lost{max-width:760px}
.ct-lost>li{padding:0}
.ct-lost .link-arrow{display:flex;justify-content:space-between;width:100%;min-height:76px;padding:20px 0;font-size:14px}
.ct-lost .link-arrow span{border-bottom-color:transparent}
.ct-lost .link-arrow:hover span,.ct-lost .link-arrow:focus-visible span{border-bottom-color:var(--gold)}
.ct-lost .link-arrow svg{color:var(--gold-deep)}

/* ---------- small screens ---------- */
@media (max-width:900px){
  .ct-send__grid,.ct-faq__grid{grid-template-columns:1fr}
  .ct-send__aside,.ct-faq__head{position:static}
  .ct-send__aside{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:1fr auto;column-gap:20px;align-items:end}
  .ct-send__aside>.h2{grid-column:1;grid-row:1}
  .ct-send__rule{grid-column:1;grid-row:2}
  .ct-send__art{grid-column:2;grid-row:1/span 2;margin-top:0;width:clamp(84px,24vw,150px)}
  .ct-send__rule{margin-top:22px}
}
@media (max-width:640px){
  .ct-row{grid-template-columns:1fr}
  .ct-sheet{border:0;border-radius:0;padding:0;box-shadow:none}
  .ct-sheet::before{content:none}
  .ct-chips{gap:10px}
  .ct-chips:not(.ct-chips--three){display:grid;grid-template-columns:1fr}
  .ct-chips:not(.ct-chips--three) .ct-chip__in{width:100%}
  .ct-chip__in{padding:9px 18px 9px 10px;gap:10px}
  .ct-chips--three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .ct-chips--three .ct-chip__in{width:100%;padding:9px 10px 9px 9px;gap:8px}
  .ct-chips--three .ct-dot{width:28px;height:28px}
  .ct-btn{width:100%;justify-content:flex-start}
  .ct-q__a{padding-right:0}
  .ct-done{margin:0 calc(var(--gutter) * -1);border-radius:0}
  .ct-done__art{display:none}
  .ct-done__h,.ct-done__p{max-width:26ch}
}

/* ---------- still mode and reduced motion: every piece at its end state ---------- */
html.still .ct-sheet,html.still .ct-chip__in,html.still .ct-dot::before,html.still .ct-dot path,html.still .ct-pm,html.still .ct-pm::before,html.still .ct-pm::after{transition:none!important}
html.still .ct-done__ring,html.still .ct-done__tick{stroke-dashoffset:0!important;transition:none!important}
html.still .ct-done__h,html.still .ct-done__p{opacity:1!important;transform:none!important;transition:none!important}
html.still .ct-err{animation:none!important}
html.still .ct-btn.is-sending .ic::after{animation:none}
@supports selector(::details-content){
  html.still .ct-q::details-content{transition:none}
}

/* v3.1 thanks page: the band under the head holds one button, so it is slim, not a big white block */
.section.thx-band{padding:clamp(28px,4.5vh,44px) 0}
.thx-band .wrap{display:flex;align-items:center}
