/* Contact page. */
.ct-hero { padding: calc(68px + clamp(2rem, 6vh, 4rem)) var(--gut) clamp(4rem, 10vh, 6rem); }
.ct-head { max-width: 58rem; }
.ct-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; margin-top: clamp(2rem, 5vh, 3rem); }
.ct-card { padding: clamp(1.3rem, 3vw, 2.2rem); background: #fff; border: var(--line); border-radius: 24px; box-shadow: 10px 10px 0 var(--ink); }
.ct-card h2 { font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem); font-weight: 800; letter-spacing: -.04em; }
.ct-sub { margin-top: .3rem; color: var(--ink-2); }
.cform { display: grid; gap: .9rem; margin-top: 1.4rem; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.cform label { display: grid; gap: .35rem; font-family: var(--f-mono); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cform label b { color: #c2185b; }
.cform input, .cform textarea { font: inherit; font-family: var(--f-sans); font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--ink); padding: .8rem .9rem; border: var(--line); border-radius: 12px; background: var(--paper); resize: vertical; transition: box-shadow .2s, background-color .2s; }
.cform input:focus, .cform textarea:focus { outline: none; background: #fff; box-shadow: 4px 4px 0 var(--yellow); }
.cform input:user-invalid, .cform textarea:user-invalid { border-color: #c2185b; box-shadow: 3px 3px 0 #ffb3cc; }
.cf-topics { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.cf-topics span { font-family: var(--f-mono); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: .2rem; }
.cf-topics button { padding: .35rem .7rem; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; font-size: .8rem; font-weight: 700; transition: background-color .2s, transform .4s var(--spring); }
.cf-topics button:hover { background: var(--yellow); transform: translateY(-2px); }
.cf-topics button.on { background: var(--ink); color: var(--paper); }
.cform .btn[disabled] { opacity: .6; cursor: progress; }
.cf-err { padding: .7rem .9rem; border-radius: 12px; background: #ffe6f0; font-size: .92rem; }
.cf-err[hidden], .cformThanks[hidden] { display: none; }
.hp { position: absolute; left: -9999px; }

/* the live letter */
.letter { position: sticky; top: 100px; margin: 0; perspective: 1400px; }
.lt-paper { position: relative; z-index: 2; padding: 1.6rem 1.6rem 1.4rem; background: #fffdf2; border: var(--line); border-radius: 6px; box-shadow: 8px 8px 0 var(--ink); background-image: repeating-linear-gradient(transparent 0 30px, rgba(79, 195, 247, .18) 30px 31px); transform: rotate(1.2deg); transform-origin: 50% 100%; transition: transform .8s var(--spring); }
.letter.typing .lt-paper { transform: rotate(0deg) translateY(-4px); }
.lt-stamp { position: absolute; right: 1.1rem; top: 1rem; display: grid; place-items: center; width: 58px; height: 64px; border: 2px dashed var(--ink); border-radius: 4px; background: #fff; color: var(--ink); transform: rotate(6deg); }
.lt-meta { display: flex; gap: .7rem; padding: .35rem 0; border-bottom: 1px solid rgba(13, 20, 33, .12); font-size: .88rem; max-width: calc(100% - 80px); }
.lt-meta span { width: 2.6rem; font-family: var(--f-mono); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: .15rem; }
.lt-meta b { overflow-wrap: anywhere; }
.lt-hi { margin-top: 1.2rem; font-family: var(--f-serif); font-style: italic; font-size: 1.5rem; }
.lt-body { margin-top: .5rem; min-height: 7.5rem; font-family: var(--f-serif); font-size: 1.25rem; line-height: 1.24; white-space: pre-wrap; overflow-wrap: anywhere; }
.lt-msg.ph { color: rgba(13, 20, 33, .35); }
.lt-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -.2em; background: var(--ink); animation: blink 1s steps(2, jump-none) infinite; }
.lt-sign { margin-top: .9rem; font-family: var(--f-serif); font-style: italic; font-size: 1.3rem; }
.lt-eta { margin-top: 1rem; padding-top: .7rem; border-top: 1.5px dashed rgba(13, 20, 33, .25); font-family: var(--f-mono); font-size: .66rem; color: var(--muted); }
.lt-eta b { color: var(--ink); }
.lt-env { position: absolute; left: -2%; right: -2%; bottom: -8px; z-index: 3; height: 0; background: var(--yellow); border: var(--line); border-radius: 6px; opacity: 0; }
.lt-flap { position: absolute; left: -2px; right: -2px; top: -2px; height: 60%; background: #ffe98a; border: var(--line); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0; }
/* sending: the letter folds into the envelope, the flap closes, and it flies */
.letter.send .lt-paper { transform: translateY(40px) scaleY(.35); transition: transform .6s cubic-bezier(.7, 0, .3, 1); }
.letter.send .lt-env { opacity: 1; height: 58%; transition: height .5s var(--ease-out) .2s, opacity .2s; }
.letter.send .lt-flap { transform: rotateX(180deg); transition: transform .5s var(--ease-out) .6s; }
.letter.fly { transform: translate(40vw, -60vh) rotate(18deg) scale(.4); opacity: 0; transition: transform .9s cubic-bezier(.6, 0, .4, 1), opacity .9s; }
.cformThanks { display: grid; gap: .6rem; align-content: start; grid-column: 1 / -1; max-width: 640px; animation: tyIn .7s var(--spring); }
@keyframes tyIn { from { transform: translateY(20px) scale(.96); opacity: 0; } }
.ty-tick { display: grid; place-items: center; width: 56px; height: 56px; border: var(--line); border-radius: 50%; background: var(--mint); font-size: 1.5rem; font-weight: 800; }
.cformThanks p { color: var(--ink-2); }
.ty-alt a { color: var(--ink); font-weight: 700; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }

/* call */
.ct-call .fin-card { display: flex; flex-direction: column; justify-content: center; }
.call-me { display: flex; align-items: center; gap: 1rem; }
.call-me img { width: 84px; height: 84px; border-radius: 50%; border: var(--line); box-shadow: 4px 4px 0 var(--ink); object-fit: cover; }
.call-me .eyebrow { margin: 0; }
.ct-call .fin-card h2 { margin-top: 1rem; font-size: clamp(2.4rem, 1rem + 3.4vw, 5rem); }
.ct-call .fin-card h2 em { font-size: 1em; }
.ct-call .fin-card > p:not(.fin-micro) { margin: 1.2rem 0 1rem; color: var(--ink-2); font-size: 1.08rem; }

/* where */
.where { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(5rem, 12vh, 8rem) var(--gut); background: var(--paper); border-top: var(--line); }
.wh-copy > p:not(.eyebrow) { margin-top: 1.1rem; color: var(--ink-2); max-width: 52ch; }
.wh-now { margin-top: 1.6rem; padding: 1.2rem 1.3rem; border: var(--line); border-radius: 18px; background: var(--ink); color: var(--paper); box-shadow: 6px 6px 0 var(--yellow); }
.wn-l { font-family: var(--f-mono); font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 253, 247, .65); }
.wn-t { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin-top: .3rem; }
.wn-t b { font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.6rem); letter-spacing: -.045em; color: var(--yellow); }
.wn-t span { font-weight: 700; }
.wn-you { margin-top: .3rem; font-size: .88rem; color: rgba(255, 253, 247, .72); }
.wh-map { position: relative; border: var(--line); border-radius: 22px; overflow: hidden; box-shadow: 10px 10px 0 var(--ink); aspect-ratio: 4 / 3; background: var(--cream); }
.wh-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }
.wh-pin { position: absolute; left: 1rem; top: 1rem; display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .8rem; border: var(--line); border-radius: 999px; background: var(--yellow); font-weight: 800; font-size: .85rem; box-shadow: 3px 3px 0 var(--ink); }
.wh-pin i { width: 10px; height: 10px; border-radius: 50%; background: #c2185b; animation: ping 1.8s var(--ease-out) infinite; }

@media (max-width: 900px) {
  .ct-grid, .where { grid-template-columns: 1fr; }
  .letter { position: relative; top: 0; order: -1; }
  .lt-body { min-height: 4rem; }
}
@media (max-width: 560px) { .cf-row { grid-template-columns: 1fr; } .lt-meta { max-width: calc(100% - 70px); } }
@media (prefers-reduced-motion: reduce) { .letter.send .lt-paper, .letter.fly { transform: none; } }
