/* Contact page: glass form on the left, a "ticket" that reacts to the form on the right, what I do, an enterprise slab,
   and direct contacts. Same language as the rest of the site (frosted glass, near-black ink, soft light). */
.ct__head { max-width: 1100px; margin: 150px auto 40px; padding: 0 50px; }
.ct__title { margin: 0; font-size: clamp(44px, 6vw, 84px); line-height: .98; font-weight: 700; letter-spacing: -.05em; color: #1d1d1f; }
.ct__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; max-width: 1100px; margin: 0 auto; padding: 0 50px; align-items: start; }

.ct__form {
  display: grid; gap: 14px; padding: 26px; border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.42));
  -webkit-backdrop-filter: blur(16px) saturate(1.7); backdrop-filter: blur(16px) saturate(1.7);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255,255,255,.5), 0 0 0 .5px rgba(0,0,0,.07), 0 24px 44px -26px rgba(0,0,0,.28);
}
.ct__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct__f { display: grid; gap: 7px; }
.ct__f > span { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: -.01em; color: #86868b; }
.ct__f input, .ct__f select {
  width: 100%; box-sizing: border-box; height: 44px; padding: 0 14px; border: 0; border-radius: 14px; outline: 0;
  font: 500 14px/1 inherit; letter-spacing: -.01em; color: #1d1d1f; background: rgba(255,255,255,.7);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), inset 0 1px 2px rgba(0,0,0,.04); transition: box-shadow .25s ease, background .25s ease;
}
.ct__f input::placeholder { color: #b0b0b6; }
.ct__f input:focus, .ct__f select:focus { background: #fff; box-shadow: inset 0 0 0 1.5px #1d1d1f, 0 6px 18px -10px rgba(0,0,0,.35); }
.ct__f select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #86868b 50%), linear-gradient(135deg, #86868b 50%, transparent 50%); background-position: calc(100% - 20px) 19px, calc(100% - 15px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.ct__check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 500; letter-spacing: -.01em; color: #6e6e73; user-select: none; }
.ct__check input { position: absolute; opacity: 0; pointer-events: none; }
.ct__check i { width: 20px; height: 20px; border-radius: 7px; background: rgba(255,255,255,.8); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); position: relative; transition: background .25s ease, box-shadow .25s ease; }
.ct__check i::after { content: ""; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .3s cubic-bezier(.34, 1.6, .5, 1); }
.ct__check input:checked + i { background: #1d1d1f; box-shadow: none; }
.ct__check input:checked + i::after { transform: rotate(45deg) scale(1); }
.ct__submit {
  position: relative; height: 48px; border: 0; border-radius: 99px; cursor: pointer; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, #34363a, #1d1d1f 60%, #121214); font: 600 15px/1 inherit; letter-spacing: -.01em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 12px 22px -12px rgba(0,0,0,.6); transition: transform .45s cubic-bezier(.34, 1.5, .5, 1);
}
.ct__submit:hover { transform: translateY(-1px); }
.ct__submit:active { transform: scale(.98); }
.ct__state { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .5s cubic-bezier(.22, 1, .36, 1), opacity .3s ease; }
.ct__state--ok, .ct__state--err { transform: translateY(100%); opacity: 0; }
.ct__submit[data-s="ok"] .ct__state--idle, .ct__submit[data-s="err"] .ct__state--idle { transform: translateY(-100%); opacity: 0; }
.ct__submit[data-s="ok"] .ct__state--ok, .ct__submit[data-s="err"] .ct__state--err { transform: none; opacity: 1; }

.ct__side { display: grid; gap: 22px; }
.ct__stage { perspective: 900px; padding: 14px 0 6px; }
.ct__ticket {
  --rx: 0deg; --ry: 0deg;
  position: relative; width: 78%; max-width: 380px; aspect-ratio: 1.58; height: auto; border-radius: 22px; padding: 18px 20px; color: #cfd0d4; overflow: hidden;
  background: linear-gradient(155deg, #26272b 0%, #161618 62%, #101012 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 0 0 1px rgba(255,255,255,.04), 0 0 0 .5px rgba(0,0,0,.6), 0 34px 40px -26px rgba(0,0,0,.55);
  transform: rotate(-2deg) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; will-change: transform;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}
.ct__ticket.is-set { animation: ctSet .9s cubic-bezier(.34, 1.5, .5, 1); }
@keyframes ctSet { 0% { transform: rotate(-2deg) rotateX(var(--rx)) rotateY(var(--ry)) scale(1); } 35% { transform: rotate(1.5deg) rotateX(var(--rx)) rotateY(var(--ry)) scale(1.025); } 100% { transform: rotate(-2deg) rotateX(var(--rx)) rotateY(var(--ry)) scale(1); } }
.ct__tk-glare { display: none; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(240px 170px at var(--mx, 30%) var(--my, 0%), rgba(255,255,255,.16), transparent 70%); }
.ct__tk-brand { position: absolute; left: 20px; top: 17px; font: 700 19px/1 -apple-system, "SF Pro Display", Inter, sans-serif; letter-spacing: -.05em; color: #9a9ba1; transform: translateZ(24px); }
.ct__tk-brand i { font-style: normal; color: #d9132a; }
.ct__tk-idk { position: absolute; right: 20px; top: 19px; font-size: 12px; font-weight: 500; color: #8c8d93; letter-spacing: .02em; text-transform: uppercase; transform: translateZ(24px); }
.ct__tk-mark { position: absolute; left: 50%; top: 50%; width: 92px; height: 38px; margin: -19px 0 0 -46px; display: block; transform: translateZ(40px); }
.ct__tk-mark i { position: absolute; top: 0; width: 9px; height: 38px; border: 2px solid rgba(235,235,240,.7); border-radius: 2px; }
.ct__tk-mark i:first-child { left: 0; border-right: 0; }
.ct__tk-mark i:last-child { right: 0; border-left: 0; }
.ct__tk-mark b { position: absolute; left: 14px; right: 14px; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: linear-gradient(90deg, rgba(255,255,255,.25), rgba(255,255,255,.85), rgba(255,255,255,.25)); }
.ct__tk-foot { position: absolute; right: 20px; bottom: 16px; display: grid; justify-items: end; gap: 3px; font-size: 11px; letter-spacing: .02em; color: #8c8d93; transform: translateZ(24px); }
.ct__tk-foot em { font-style: normal; font-weight: 600; color: #c9cace; }
.ct__tk-foot span { display: flex; gap: 12px; }
.ct__tk-foot b { font-weight: 500; }
.ct__list { list-style: none; margin: 0; padding: 0 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.ct__list li { font-size: 14px; line-height: 16px; font-weight: 500; letter-spacing: -.01em; color: #1d1d1f; }
.ct__list li::before { content: "\2726"; color: #d9132a; margin-right: 8px; font-size: 11px; }

.ct__enterprise {
  position: relative; max-width: 1000px; margin: 64px auto 0; padding: 26px 30px; border-radius: 28px; color: #fff;
  display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 24px; align-items: center;
  background: linear-gradient(160deg, #2a2c33, #131316 70%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 0 .5px rgba(0,0,0,.5), 0 30px 46px -26px rgba(0,0,0,.6);
}
.ct__enterprise h2 { margin: 0; font-size: 30px; line-height: 1.05; font-weight: 600; letter-spacing: -.04em; }
.ct__enterprise ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.88); }
.ct__retainer { height: 44px; padding: 0 20px; border-radius: 99px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: #1d1d1f; background: linear-gradient(180deg, #fff, #ededf0); transition: transform .45s cubic-bezier(.34, 1.5, .5, 1); }
.ct__retainer:hover { transform: translateY(-2px); }
.ct__retainer i { font-style: normal; transition: transform .45s cubic-bezier(.34, 1.8, .5, 1); }
.ct__retainer:hover i { transform: translate(3px, -3px); }

.ct__direct { max-width: 1000px; margin: 44px auto 0; padding: 0 30px; display: grid; gap: 4px; }
.ct__d-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(0,0,0,.1); }
.ct__d-row span { font-size: 18px; font-weight: 500; color: #1d1d1f; }
.ct__d-row a { font-size: clamp(20px, 3vw, 36px); font-weight: 600; letter-spacing: -.04em; color: #1d1d1f; text-decoration: none; transition: color .25s ease, transform .45s cubic-bezier(.34, 1.5, .5, 1); }
.ct__d-row a:hover { color: #d9132a; transform: translateX(-4px); }

@media (max-width: 1000px) { .ct__grid { grid-template-columns: 1fr; padding: 0 24px; } .ct__head { padding: 0 24px; margin-top: 120px; } .ct__enterprise { grid-template-columns: 1fr; margin: 48px 24px 0; } .ct__direct { padding: 0 24px; } }
@media (max-width: 560px) { .ct__row--2 { grid-template-columns: 1fr; } .ct__ticket { width: 86%; } .ct__tk-mark { top: 62px; } }

/* Let direct-contact links wrap on narrow phones instead of widening the page. */
@media (max-width: 560px) {
  .ct__d-row { flex-wrap: wrap; gap: 8px 16px; }
  .ct__d-row a { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
}
@media (max-width: 340px) { .ct__d-row a { font-size: 18px; } }

/* Finger scrolling must not rotate composited 3D layers on iOS. */
@media (hover: none), (pointer: coarse) {
  .ct__stage { perspective: none; }
  .ct__ticket { transform: rotate(-2deg); transform-style: flat; will-change: auto; }
  .ct__ticket.is-set { animation: none; }
  .ct__ticket * { transform: none; }
}
