/* ==========================================================================
   Concierge — an ethereal, single-screen AI front desk.
   Layout: a 3x3 frame around Sriram's portrait film; editorial serif on the
   left, signal words on the right, glass actions + ask bar in the centre.
   Single committed look (fog-blue daylight) in both themes.
   ========================================================================== */
:root {
  --c-bg: #dfe6ef;
  --c-ink: #17253f;
  --c-ink-2: #4b5a74;
  --c-faint: #7f8ba1;
  --c-glass: rgba(255, 255, 255, .34);
  --c-glass-2: rgba(255, 255, 255, .6);
  --c-line: rgba(255, 255, 255, .7);
  --c-glow: #a9c6ff;
  --c-ember: #ffb36b;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, Georgia, serif;
  --wide: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --body: "Hanken Grotesk", -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--c-bg); color: var(--c-ink); font: 400 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 3px; border-radius: 6px; }
.caps { font-family: var(--wide); font-stretch: 120%; font-weight: 500; text-transform: uppercase; letter-spacing: .2em; font-size: 10px; }
.glass { background: var(--c-glass); border: 1px solid var(--c-line); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); box-shadow: 0 10px 30px -18px rgba(23, 37, 63, .35), inset 0 1px 0 rgba(255,255,255,.6); }

/* ---------- gate ------------------------------------------------------------- */
.gate { position: fixed; inset: 0; z-index: 30; overflow: hidden; display: grid; place-items: center; text-align: center;
  background: radial-gradient(120% 80% at 50% 30%, #f3f6fb 0%, #dfe7f2 55%, #c9d6e8 100%);
  transition: opacity 1.1s cubic-bezier(.2,.7,.1,1), transform 1.4s cubic-bezier(.2,.7,.1,1), filter 1.1s; }
.gate.leaving { opacity: 0; transform: scale(1.06); filter: blur(10px); pointer-events: none; }
.rays { position: absolute; inset: 0; pointer-events: none; }
.rays i { position: absolute; top: -10%; bottom: 20%; width: 1px; background: linear-gradient(to bottom, transparent, rgba(255,255,255,.95), transparent); opacity: .7; animation: ray 7s ease-in-out infinite; }
@keyframes ray { 0%, 100% { opacity: .15; transform: translateY(-4%); } 50% { opacity: .9; transform: translateY(4%); } }
.waves { position: absolute; left: -10%; right: -10%; bottom: -6%; height: 70%; pointer-events: none; }
.waves path { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 1.2; }
.waves .fill { fill: rgba(255,255,255,.35); stroke: none; }
.waves g { animation: sway 14s ease-in-out infinite alternate; transform-origin: 50% 50%; }
.waves g:nth-child(2) { animation-duration: 18s; animation-direction: alternate-reverse; }
@keyframes sway { to { transform: translateX(-4%) translateY(2%); } }
.sparks i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 18px 6px rgba(255,255,255,.9); animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }
.gate-inner { position: relative; display: grid; justify-items: center; gap: 18px; padding: 24px; }
.mark { display: flex; align-items: center; gap: 26px; }
.mark img { width: 112px; height: 112px; border-radius: 50%; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; opacity: .85; }
.wordmark { text-align: left; font-family: var(--wide); font-stretch: 125%; font-weight: 600; letter-spacing: .14em; line-height: 1.05; font-size: clamp(30px, 4.4vw, 54px);
  background: linear-gradient(100deg, #49597a 10%, #8a6f5c 45%, #47577a 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark small { display: block; margin-top: 14px; font-size: 13px; letter-spacing: .32em; font-weight: 500; color: var(--c-ink-2); -webkit-text-fill-color: var(--c-ink-2); }
.rotator { height: 46px; overflow: hidden; margin-top: 18px; }
.rotator ul { list-style: none; margin: 0; padding: 0; animation: rot 12s cubic-bezier(.7,0,.2,1) infinite; }
.rotator li { height: 46px; font: 400 clamp(28px, 3vw, 36px)/46px var(--serif); color: var(--c-ink); }
@keyframes rot { 0%,20% { transform: translateY(0) } 25%,45% { transform: translateY(-46px) } 50%,70% { transform: translateY(-92px) } 75%,95% { transform: translateY(-138px) } 100% { transform: translateY(-184px) } }
.gate .sub { font: 400 16px/1.7 var(--serif); color: var(--c-ink-2); }
.gate .sub .caps { display: block; font-size: 10px; margin-bottom: 4px; }
.enter { margin-top: 22px; padding: 12px 30px; border-radius: 999px; border: 1px solid var(--c-line); cursor: pointer; font-family: var(--wide); font-stretch: 125%; font-weight: 500; letter-spacing: .4em; font-size: 15px; color: var(--c-ink); transition: transform .4s, box-shadow .4s; }
.enter:hover { transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(255,255,255,.35), 0 20px 40px -20px rgba(23,37,63,.4); }
.ticker { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: rgba(120, 140, 170, .28); backdrop-filter: blur(6px); color: rgba(255,255,255,.95); overflow: hidden; white-space: nowrap; }
.ticker div { display: inline-block; animation: tick 40s linear infinite; }
.ticker span { margin-right: 46px; }
@keyframes tick { to { transform: translateX(-50%); } }
.top-left { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 32px); left: max(36px, env(safe-area-inset-left, 0px)); }
.top-right { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 26px); right: max(28px, env(safe-area-inset-right, 0px)); }
.menu-link { background: none; border: 0; cursor: pointer; padding: 6px 0; color: var(--c-ink); }
.pill-big { display: inline-flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border-radius: 999px; text-decoration: none; font: 500 clamp(18px, 1.7vw, 24px)/1 var(--wide); font-stretch: 110%; letter-spacing: .02em; cursor: pointer; }
.pill-big i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--c-glass-2); }
.pill-big svg { width: 18px; height: 18px; }

/* ---------- desk (after enter) ----------------------------------------------------- */
.desk { position: fixed; inset: 0; overflow: hidden; }
.desk video.film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; filter: saturate(.85) contrast(1.06); }
.desk .tint { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(223,230,239,.92) 0%, rgba(223,230,239,.55) 26%, rgba(223,230,239,0) 46%, rgba(223,230,239,0) 72%, rgba(223,230,239,.6) 100%),
    linear-gradient(to top, rgba(223,230,239,.9) 0%, rgba(223,230,239,0) 30%),
    linear-gradient(rgba(169,198,255,.12), rgba(169,198,255,.12)); }
.frame { position: relative; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto auto auto;
  gap: 18px 28px; padding: calc(env(safe-area-inset-top, 0px) + 22px) max(28px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 12px) max(28px, env(safe-area-inset-left, 0px)); }
.f-tl { display: flex; align-items: center; gap: 20px; align-self: start; margin-top: 8px; }
.f-tl .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.f-tl .logo img { width: 38px; height: 38px; border-radius: 50%; filter: grayscale(1); }
.f-tl .logo b { font: 600 13px/1.05 var(--wide); font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; }
.f-tl .logo b small { display: block; font-size: 7px; letter-spacing: .3em; font-weight: 500; color: var(--c-ink-2); }
.f-tc { justify-self: center; align-self: start; display: grid; justify-items: center; gap: 14px; }
.clock { display: inline-flex; align-items: center; gap: 12px; padding: 7px 18px 7px 10px; border-radius: 999px; }
.clock .t { font: 300 30px/1 var(--wide); font-stretch: 100%; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.clock .loc { font: 500 11px/1.15 var(--body); color: var(--c-ink-2); }
.clock .loc b { display: block; color: var(--c-ink); font-weight: 600; }
.clock .live { width: 8px; height: 8px; border-radius: 50%; background: #2bd47d; box-shadow: 0 0 0 4px rgba(43,212,125,.25); }
.greet { font: 400 clamp(26px, 2.6vw, 38px)/1.1 var(--body); color: var(--c-ink); text-shadow: 0 0 24px rgba(255,255,255,.9); min-height: 1.2em; text-align: center; letter-spacing: -.01em; transition: opacity .5s; }
.chatting .greet { opacity: 0; }
.f-tr { justify-self: end; align-self: start; display: grid; justify-items: end; align-content: start; gap: 14px; }
.soc { display: flex; gap: 8px; }
.soc a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.soc svg { width: 17px; height: 17px; fill: var(--c-ink); }
.soc svg[fill="none"] { fill: none; stroke: var(--c-ink); }
.f-left { grid-column: 1; grid-row: 2 / span 2; align-self: start; display: grid; gap: 22px; padding-top: 20px; max-width: 360px; }
.f-left h1 { margin: 0; font: 400 clamp(36px, 3.4vw, 54px)/1.02 var(--serif); letter-spacing: -.01em; }
.f-left .caps { color: var(--c-ink-2); line-height: 1.9; }
.proof { display: grid; gap: 8px; margin-top: 18px; }
.proof div { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 8px 14px; border-radius: 999px; font-size: 12px; }
.proof b { font-weight: 600; }
.proof span { color: var(--c-ink-2); font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.f-right { grid-column: 3; grid-row: 2; justify-self: end; text-align: right; display: grid; gap: 30px; align-content: start; padding-top: 40px; }
.f-right .caps { line-height: 2.1; color: var(--c-ink); border-right: 1px solid rgba(23,37,63,.3); padding-right: 12px; }
.f-center { grid-column: 2; grid-row: 2 / span 3; align-self: end; display: grid; gap: 10px; position: relative; }
.transcript { max-height: max(180px, calc(100vh - 480px)); overflow-y: auto; display: grid; gap: 10px; padding: 14px; border-radius: 22px; scrollbar-width: thin; }
.msg { max-width: 92%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.msg.you { justify-self: end; background: rgba(23,37,63,.88); color: #fff; border-bottom-right-radius: 4px; }
.msg.ai { justify-self: start; background: var(--c-glass-2); border-bottom-left-radius: 4px; }
.msg.ai a { font-weight: 600; text-underline-offset: 2px; }
.msg .follow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.msg .follow button, .msg .follow a { font-size: 12px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(23,37,63,.2); background: rgba(255,255,255,.6); cursor: pointer; text-decoration: none; font-weight: 500; }
.typing i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--c-ink-2); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s } .typing i:nth-child(3) { animation-delay: .3s }
@keyframes blink { 50% { opacity: .2; } }
.actions { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.act { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 16px; cursor: pointer; text-align: left; font-size: 13.5px; font-weight: 500; transition: background .25s, transform .25s; }
.act:hover { background: var(--c-glass-2); transform: translateY(-1px); }
.act span { display: flex; align-items: center; gap: 10px; }
.act svg { width: 16px; height: 16px; flex: none; }
.act .arr { opacity: .55; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.modes a, .modes button { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 9px; border-radius: 12px; font-family: var(--wide); font-stretch: 115%; font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.modes svg { width: 13px; height: 13px; }
.ask { display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 16px; border-radius: 18px; }
.ask svg { width: 16px; height: 16px; flex: none; color: var(--c-ink-2); }
.ask input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 15px var(--body); color: var(--c-ink); outline: none; padding: 8px 0; }
.ask input::placeholder { color: var(--c-ink-2); }
.ask .send { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 12px -4px rgba(23,37,63,.3); }
.ask .voice { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.ask .voice[aria-pressed="true"] { background: rgba(23,37,63,.88); }
.ask .voice[aria-pressed="true"] svg { color: #fff; }
.comet { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.comet path.trail { fill: none; stroke: url(#cometGrad); stroke-width: 2.4; stroke-linecap: round; filter: url(#glow); stroke-dasharray: 70 1000; animation: comet 7s linear infinite; }
@keyframes comet { from { stroke-dashoffset: 1070; } to { stroke-dashoffset: 0; } }
.f-bl { grid-column: 1; grid-row: 4; align-self: end; display: grid; gap: 4px; }
.f-bl q { font: italic 400 19px/1.25 var(--serif); quotes: "“" "”"; max-width: 320px; }
.f-bl .caps { color: var(--c-ink-2); font-size: 9px; }
.f-br { grid-column: 3; grid-row: 4; justify-self: end; align-self: end; font: 400 clamp(34px, 3.2vw, 50px)/1 var(--script); color: #fff; text-shadow: 0 2px 20px rgba(23,37,63,.35); }
.f-foot { grid-column: 1 / -1; grid-row: 5; display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: end; font-size: 8.5px; padding-top: 4px; }
.f-foot > :nth-child(2) { text-align: center; }
.f-foot > :last-child { text-align: right; }

/* menu */
.c-menu { position: fixed; inset: 0; z-index: 60; display: grid; align-content: center; justify-items: start; gap: 6px; padding: 80px max(36px, env(safe-area-inset-left, 0px)); background: rgba(223,230,239,.82); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.c-menu a { font: 400 clamp(40px, 6vw, 72px)/1.1 var(--serif); text-decoration: none; }
.c-menu a:hover { font-style: italic; }
.c-menu .close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 28px); left: max(36px, env(safe-area-inset-left, 0px)); }

/* modal (Calendly) reuses site styles */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(23,37,63,.4); backdrop-filter: blur(8px); }
.modal-box { position: relative; width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #f4f6fa; border-radius: 26px; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 18px; z-index: 2; }
.modal iframe { width: 100%; height: 680px; border: 0; display: block; background: #fff; }
.modal .fallback { padding: 14px 22px 20px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--c-ink-2); }
.btn-outline { display: inline-flex; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--c-ink); text-decoration: none; font-size: 14px; }

@media (max-width: 1000px) {
  body { overflow: auto; }
  .desk { position: relative; min-height: 100svh; }
  .desk video.film { object-position: 62% 20%; }
  .frame { grid-template-columns: 1fr auto; grid-template-rows: auto auto 1fr auto auto; min-height: 100svh; gap: 14px; }
  .f-tc { grid-column: 1 / -1; grid-row: 2; }
  .f-tr { grid-column: 2; grid-row: 1; }
  .f-tr .soc { display: none; }
  .clock .t { font-size: 22px; }
  .f-left { grid-column: 1 / -1; grid-row: 3; max-width: 22ch; padding-top: 4px; }
  .f-left .proof, .f-right, .f-br { display: none; }
  .f-center { grid-column: 1 / -1; grid-row: 4; }
  .f-bl { grid-column: 1 / -1; grid-row: 5; }
  .f-foot { grid-row: 6; grid-template-columns: 1fr; text-align: left; }
  .f-foot > * { text-align: left !important; }
  .pill-big { font-size: 15px; padding-right: 14px; }
  .pill-big i { width: 34px; height: 34px; }
  .mark { flex-direction: column; gap: 16px; }
  .wordmark { text-align: center; }
}
@media (max-width: 560px) {
  .actions { grid-template-columns: 1fr; }
  .comet { display: none; }
  .f-tl .logo b { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
