/* Contact me page (/contact/): bio card + dot-pad link dial, Linktree-style column.
   Own dark palette, independent of the main site theme. */
:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body.contact-page {
  background: #0d0d0d;
  font-family: "Montserrat", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.dial {
  --acc: #FF8E48; --on-acc: #231f20; --acc-text: #FF8E48; --acc-strong: #D9661F;
  position: relative;
  width: 100%; max-width: 480px; margin: 0 auto;
  min-height: 100vh; min-height: 100svh;
  background: #161616; color: #fff;
  display: flex; flex-direction: column; align-items: center;
  gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 20px) 16px calc(env(safe-area-inset-bottom, 0px) + 28px);
}
.dial-top { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.dial-round {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid #333; background: #1f1f1f; color: #ddd;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer;
  font: inherit; font-size: 15px;
}
.dial-round:hover, .dial-round:focus-visible { border-color: var(--acc); color: #fff; }
.dial-round svg { width: 17px; height: 17px; }

/* Hero card: live HTML text (was one wide outlined SVG that shrank to ~5px text on phones) */
.dial-card {
  --ink: #231f20;
  width: 100%;
  background: #fffceb; color: var(--ink);
  border: 2.5px solid var(--acc);
  border-radius: 22px;
  padding: 14px;
  display: grid; grid-template-columns: 34fr 66fr; column-gap: 14px; row-gap: 0; align-items: start;
}
.hero-photo {
  display: block; width: 100%; height: auto; aspect-ratio: 480 / 781; object-fit: cover;
  border-radius: 12px;            /* 22 outer - 2.5 border - ~8 inset, kept concentric-ish */
  background: #e9e4cf;
}
.hero-text { container-type: inline-size; min-width: 0; align-self: center; }   /* name block centred on the photo */
/* Name lockup, positions measured from the approved Illustrator card (column width = 100cqi):
   SAIKIRAN spans the column; Chepuri starts at 31.5%, 68% wide, top 8.3% below the cap line;
   the title (DESIGNER) cap top sits at 29.3%. text-box trims each line to cap-height so the math holds. */
.hero-name { position: relative; margin: 0; font-weight: 400; line-height: 1; }
.hero-first {
  display: block;
  font-family: "Bebas Neue", sans-serif; text-transform: uppercase;
  font-size: calc(100cqi / 2.74); line-height: .74;    /* fallback ≈ cap height where text-box is missing */
}
@supports (text-box: trim-both cap alphabetic) {
  .hero-first { line-height: 1; text-box: trim-both cap alphabetic; }
  .hero-role { line-height: 1; text-box: trim-both cap alphabetic; }
}
.hero-script {
  position: absolute; left: 31.5%; top: calc(100cqi * .083);
  width: 68%; height: auto; color: var(--acc-text);
  pointer-events: none;
}
.hero-role {
  margin: calc(100cqi * .05) 0 0;
  font-family: "Bebas Neue", sans-serif; font-weight: 400; text-transform: uppercase;
  font-size: calc(100cqi / 7.12); letter-spacing: .6em; line-height: .74;  /* DESIGNER = 7.117em: spans the column */
  white-space: nowrap; margin-right: -.6em;
}
.hero-tools { grid-column: 1 / -1; margin-top: 10px; }
.hero-label {
  display: flex; align-items: center; gap: 13px; margin: 0 0 10px;
  font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 27px; letter-spacing: .06em; line-height: 1;
  color: #6b6466;
}
.hero-label::before, .hero-label::after { content: ""; flex: 1; height: 1px; background: rgba(35, 31, 32, .14); }
.hero-label::after { margin-left: -.06em; }   /* Bebas tracking trails the last letter: keep both gaps 13px */
.hero-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hero-chips li { flex: 1 0 auto; text-align: center; }   /* each row fills the card edge to edge */
.hero-chips li {
  font-family: "Bebas Neue", sans-serif; font-size: 16px; font-weight: 400; letter-spacing: .05em;
  line-height: 1; white-space: nowrap;   /* Bebas is caps-only and narrow: 16px reads like 13px Montserrat */
  padding: 7px 11px 6px; border-radius: 999px;
  background: rgba(35, 31, 32, .07); color: var(--ink);
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 6px 12px; margin-top: calc(100cqi * .03);
}
.hero-status {                        /* green pill: cream on #15803D = 4.9:1 */
  margin: 0; padding: 3px 13px 2px; border-radius: 999px;
  background: #15803D; color: #fffceb;
  font-family: "Bebas Neue", sans-serif; font-size: 15px; letter-spacing: .05em; line-height: 1.1;
  white-space: nowrap;
}
.hero-place {
  margin: 0;
  font-family: "Bebas Neue", sans-serif; font-size: 17px; letter-spacing: .06em; line-height: 1;
  margin-right: -.06em; white-space: nowrap;
  color: #6b6466;                 /* 5.6:1 on cream */
}
/* very narrow phones (<=340): keep two columns */
@media (max-width: 340px) {
  .hero-status { font-size: 13px; padding: 3px 10px 2px; }
  .hero-chips li { font-size: 15px; padding: 7px 9px 6px; }
}

.dial-head { min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.dial-idle {
  margin: 0; font-family: "Bebas Neue", sans-serif; font-size: 20px; letter-spacing: .12em;
  color: #8f8f8f; text-transform: uppercase;
}
.dial-pill {
  display: inline-flex; align-items: center; height: 34px; padding: 0 20px; border-radius: 999px;
  background: var(--acc); color: var(--on-acc);
  font-family: "Bebas Neue", sans-serif; font-size: 23px; letter-spacing: .06em;
}
.dial-pill[hidden], .dial-idle[hidden] { display: none; }
.dial-sub { margin: 0; font-size: 13px; color: #b0b0b0; min-height: 18px; }

.dial-pad { width: 100%; max-width: 420px; aspect-ratio: 1; touch-action: none; }
.dial-svg { display: block; width: 100%; height: 100%; overflow: visible; user-select: none; -webkit-user-select: none; cursor: grab; }
.is-dragging .dial-svg { cursor: grabbing; }
.dial-svg:focus-visible { outline: 2px solid var(--acc); outline-offset: 6px; border-radius: 50%; }
.dial-icon { cursor: pointer; }
.dial-icon:focus-visible circle { stroke: #fff; stroke-width: 2; }

.dial-foot { margin: auto 0 0; font-size: 13px; line-height: 1.45; color: #a3a3a3; text-align: center; text-wrap: balance; max-width: 34ch; }
.dial-foot a { color: #cfcfcf; }

/* "View on mobile" QR, desktop only (like Linktree) */
.dial-qr {
  position: fixed; right: 24px; bottom: 24px; display: none;
  flex-direction: column; align-items: center; gap: 6px;
  color: #b8b8b8; font-size: 13px; text-align: center;
}
.dial-qr img { width: 104px; height: 104px; background: #fff; padding: 6px; border-radius: 8px; image-rendering: pixelated; }
@media (min-width: 900px) and (hover: hover) { .dial-qr { display: flex; } }

.toast-mini {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: #fff; color: #111; font-size: 13px; padding: 8px 14px; border-radius: 999px; transition: all .2s ease; pointer-events: none;
}
.toast-mini.on { opacity: 1; transform: translateX(-50%); }

@media (prefers-reduced-motion: reduce) {
  .dial-card, .dial-pill, .toast-mini { transition: none; }
}

/* ---------- v2 motion: page-load entrance + icon hover pop ----------
   --pop  = spring w17 z.5 (16% overshoot, 700ms)   --soft = spring w14 z.72 (4%, 600ms) */
.dial {
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  --soft: cubic-bezier(.22, 1, .36, 1);
}
@supports (animation-timing-function: linear(0, 1)) {
  .dial {
    --pop: linear(0, 0.078, 0.262, 0.49, 0.712, 0.9, 1.037, 1.121, 1.158, 1.16, 1.138, 1.103, 1.066, 1.032, 1.005, 0.987, 0.977, 0.973, 0.975, 0.98, 0.986, 0.992, 0.997, 1.001, 1.003, 1.004, 1.004, 1.004, 1);
    --soft: linear(0, 0.039, 0.134, 0.258, 0.393, 0.524, 0.644, 0.748, 0.833, 0.901, 0.952, 0.989, 1.013, 1.028, 1.036, 1.038, 1.037, 1.034, 1.029, 1.024, 1.019, 1.014, 1.01, 1.007, 1.004, 1.002, 1.001, 1, 1);
  }
}
@keyframes dial-rise { from { transform: translateY(18px) scale(.96); } }
@keyframes dial-fade { from { opacity: 0; } }
@keyframes dial-pop  { from { transform: scale(.94); } }
@keyframes dial-chip { from { transform: scale(.7); } }
@media (prefers-reduced-motion: no-preference) {
  .dial-card { animation: dial-rise 600ms var(--soft) both, dial-fade 220ms ease-out both; }
  .hero-photo { animation: dial-pop 600ms var(--soft) 60ms both, dial-fade 200ms ease-out 60ms both; }
  .hero-text, .hero-label { animation: dial-rise 600ms var(--soft) 120ms both, dial-fade 260ms ease-out 120ms both; }
  .hero-label { animation-delay: 210ms; }
  .hero-chips li {                                   /* bubbles pop in one after another */
    animation: dial-chip 520ms var(--pop) both, dial-fade 160ms ease-out both;
    animation-delay: calc(240ms + var(--i) * 35ms);
  }
  .dial-head, .dial-foot { animation: dial-fade 400ms ease-out 450ms both; }
  .dial-top { animation: dial-fade 300ms ease-out both; }

  .dial-icon { transform-box: fill-box; transform-origin: center; transition: transform 500ms var(--pop); }
  .dial-icon:active { transform: scale(.9); transition-duration: 120ms; }
  .dial-round { transition: transform 450ms var(--pop), border-color .2s, color .2s; }
  .dial-round:active { transform: scale(.88); transition-duration: 100ms; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .dial-icon:hover { transform: scale(1.14); }
  .dial-round:hover { transform: scale(1.08); }
}

.sr-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
