/* Infinity Edit — HR-portal style layout (sidebar + workspace), ink navy with editor's-red accent */
:root {
  --ink: #12203a; --ink-2: #1b2c4d; --ink-3: #2a3d63;
  --red: #d6453d; --red-soft: #fdecea;
  --bg: #f4f6fa; --card: #ffffff; --line: #e3e7ef; --line-2: #eef1f6;
  --text: #1c2433; --muted: #66708a; --faint: #98a1b5;
  --green: #1f8a5b; --green-soft: #e3f4ec; --amber: #b7791f; --amber-soft: #fdf3e1;
  --blue: #2f5bd3; --blue-soft: #e8eefc; --grey-soft: #eef0f4;
  --radius: 10px; --shadow: 0 1px 2px rgba(18,32,58,.06), 0 4px 14px rgba(18,32,58,.05);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--text); background: var(--bg); font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; color: var(--ink); }
h1 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 16px; font-weight: 650; }
h3 { font-size: 14px; font-weight: 650; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12.5px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; }
.nowrap { white-space: nowrap; }

/* ---------- App shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #c9d2e6; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 20px 18px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand svg { flex: none; }
.brand b { display: block; font-size: 16px; letter-spacing: .01em; }
.brand span { font-size: 11px; color: #8d9bbb; letter-spacing: .08em; text-transform: uppercase; }
.nav { padding: 12px 10px; flex: 1; }
.nav .grp { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #6f7ea1; padding: 14px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; color: #c9d2e6; padding: 9px 12px; border-radius: 8px; font-weight: 500; }
.nav a:hover { background: var(--ink-2); text-decoration: none; color: #fff; }
.nav a.on { background: var(--ink-3); color: #fff; box-shadow: inset 3px 0 0 var(--red); }
.nav a .n { margin-left: auto; background: var(--red); color: #fff; border-radius: 99px; font-size: 11px; padding: 0 7px; line-height: 18px; }
.nav svg { width: 17px; height: 17px; opacity: .85; flex: none; }
.side-foot { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.07); font-size: 12px; color: #8d9bbb; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { background: var(--card); border-bottom: 1px solid var(--line); height: 60px; display: flex; align-items: center; padding: 0 28px; gap: 14px; position: sticky; top: 0; z-index: 5; }
.top .crumb { font-weight: 600; color: var(--ink); }
.top .sp { flex: 1; }
.who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.who .nm { font-weight: 600; font-size: 13px; color: var(--ink); line-height: 1.2; }
.who .rl { font-size: 11.5px; color: var(--muted); text-transform: capitalize; }
.content { padding: 26px 28px 60px; max-width: 1240px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.menu-btn { display: none; }

/* ---------- Cards, grids ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card > .hd { padding: 14px 18px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card > .bd { padding: 18px; }
.card + .card { margin-top: 18px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.stack > * + * { margin-top: 18px; }
.stat { padding: 16px 18px; }
.stat .k { font-size: 12px; color: var(--muted); font-weight: 500; }
.stat .v { font-size: 24px; font-weight: 700; color: var(--ink); margin-top: 4px; letter-spacing: -.01em; }
.stat .s { font-size: 12px; color: var(--faint); margin-top: 2px; }
.stat.accent { border-top: 3px solid var(--red); }
.stat a { color: inherit; }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 10px 14px; background: #f8f9fc; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbfd; }
td .t { font-weight: 600; color: var(--ink); }
.empty { padding: 34px 18px; text-align: center; color: var(--muted); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--grey-soft); color: var(--muted); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.b-open, .b-approved, .b-active, .b-paid, .b-completed, .b-processed { background: var(--green-soft); color: var(--green); }
.b-pending_review, .b-pending, .b-requested, .b-revision, .b-on_hold { background: var(--amber-soft); color: var(--amber); }
.b-assigned, .b-delivered { background: var(--blue-soft); color: var(--blue); }
.b-rejected, .b-suspended, .b-cancelled, .b-unpaid { background: var(--red-soft); color: var(--red); }
.tag { display: inline-block; font-size: 11.5px; background: var(--grey-soft); color: var(--ink-3); border-radius: 6px; padding: 1px 7px; margin: 0 4px 4px 0; }
.tag.hit { background: var(--green-soft); color: var(--green); }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: 12.5px; color: var(--ink); margin-bottom: 5px; }
label .opt { color: var(--faint); font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff; border: 1px solid #cfd5e1; border-radius: 8px; padding: 9px 11px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,91,211,.14); }
input[readonly], input:disabled { background: var(--bg); color: var(--muted); }
input[type=file] { font: inherit; font-size: 13px; width: 100%; padding: 10px; border: 1px dashed #b9c1d1; border-radius: 8px; background: #fafbfd; }
textarea { resize: vertical; min-height: 90px; }
.field { margin-bottom: 14px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.check { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; font-size: 13px; color: var(--text); }
.check input { margin-top: 3px; }
fieldset { border: 0; padding: 0; margin: 0 0 6px; }
legend { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.inline-form { display: inline; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-weight: 600; font-size: 13.5px; padding: 9px 16px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; background: var(--ink); color: #fff; text-decoration: none !important; white-space: nowrap; }
.btn:hover { background: var(--ink-3); }
.btn.red { background: var(--red); } .btn.red:hover { background: #bf3730; }
.btn.green { background: var(--green); } .btn.green:hover { background: #18714a; }
.btn.ghost { background: #fff; color: var(--ink); border-color: #cfd5e1; } .btn.ghost:hover { background: var(--bg); }
.btn.danger { background: #fff; color: var(--red); border-color: #f0c5c2; } .btn.danger:hover { background: var(--red-soft); }
.btn.sm { padding: 5px 11px; font-size: 12.5px; }
.btn.block { width: 100%; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Alerts ---------- */
.alert { padding: 11px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 13.5px; border: 1px solid; }
.alert.success { background: var(--green-soft); border-color: #bfe3d1; color: #145c3d; }
.alert.error { background: var(--red-soft); border-color: #f3c6c2; color: #8f2a24; }
.alert.info { background: var(--blue-soft); border-color: #cbd8f7; color: #22409a; }
.alert.warn { background: var(--amber-soft); border-color: #f1d9ad; color: #7a4f0e; }

/* ---------- Detail lists ---------- */
dl.kv { display: grid; grid-template-columns: 150px 1fr; gap: 9px 14px; margin: 0; font-size: 13.5px; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; color: var(--text); font-weight: 500; word-break: break-word; }
.prose { white-space: pre-wrap; word-break: break-word; font-size: 13.5px; color: var(--text); }
.money { display: grid; gap: 10px; }
.money .m { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px; border-radius: 8px; background: var(--bg); }
.money .m b { font-size: 17px; color: var(--ink); }
.money .m.cust { background: var(--blue-soft); } .money .m.exp { background: var(--green-soft); } .money .m.adm { background: var(--amber-soft); }

/* ---------- Estimate box ---------- */
.estimate { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 20px; position: sticky; top: 80px; }
.estimate .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #8d9bbb; }
.estimate .price { font-size: 32px; font-weight: 800; margin: 6px 0 4px; letter-spacing: -.02em; }
.estimate .meta { font-size: 13px; color: #c9d2e6; }
.estimate hr { border: 0; border-top: 1px solid rgba(255,255,255,.1); margin: 14px 0; }
.estimate ul { margin: 0; padding-left: 18px; color: #c9d2e6; font-size: 12.5px; }

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; height: 560px; }
.chat .msgs { flex: 1; overflow-y: auto; padding: 18px; background: #f8f9fc; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 78%; padding: 9px 13px; border-radius: 12px; background: #fff; border: 1px solid var(--line); align-self: flex-start; }
.bubble.mine { align-self: flex-end; background: var(--ink); color: #fff; border-color: var(--ink); }
.bubble.admin { align-self: center; background: var(--amber-soft); border-color: #f1d9ad; max-width: 90%; }
.bubble .meta { font-size: 11px; opacity: .7; margin-bottom: 3px; font-weight: 600; }
.bubble .body { white-space: pre-wrap; word-break: break-word; }
.chat form { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); background: #fff; border-radius: 0 0 var(--radius) var(--radius); }
.chat textarea { min-height: 44px; height: 44px; flex: 1; }
.chat .rule { font-size: 12px; padding: 8px 14px; background: var(--red-soft); color: #8f2a24; border-bottom: 1px solid #f3c6c2; }
.chat-error { margin: 0 12px 0; display: none; }

/* ---------- Files ---------- */
.files { list-style: none; margin: 0; padding: 0; }
.files li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.files li:last-child { border-bottom: 0; }
.ficon { width: 34px; height: 34px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: 10px; font-weight: 800; text-transform: uppercase; flex: none; }
.ficon.deliverable { background: var(--green-soft); color: var(--green); }
.files .fn { font-weight: 600; color: var(--ink); word-break: break-all; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-art { background: var(--ink); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-art::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(214,69,61,.12); }
.auth-art h1 { color: #fff; font-size: 36px; line-height: 1.15; letter-spacing: -.02em; max-width: 440px; }
.auth-art h1 em { font-style: normal; color: #ff8b82; text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 3px; }
.auth-art p { color: #b5c0d8; max-width: 420px; font-size: 15px; }
.auth-art ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; color: #c9d2e6; }
.auth-art li::before { content: "✓"; color: #ff8b82; font-weight: 800; margin-right: 10px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-form .box { width: 100%; max-width: 440px; }
.auth-form.wide .box { max-width: 620px; }
.auth-form h2 { font-size: 24px; margin-bottom: 6px; }
.tabs { display: flex; background: var(--grey-soft); border-radius: 9px; padding: 4px; margin: 18px 0; }
.tabs a { flex: 1; text-align: center; padding: 8px; border-radius: 7px; font-weight: 600; color: var(--muted); }
.tabs a.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) { .g4 { grid-template-columns: repeat(2, 1fr); } .split { grid-template-columns: 1fr; } .estimate { position: static; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; width: 260px; z-index: 20; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  .menu-btn { display: inline-flex; }
  .content { padding: 18px 16px 50px; }
  .top { padding: 0 16px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .row, .row3 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; } .auth-art { padding: 32px 24px; } .auth-art h1 { font-size: 26px; } .auth-art ul { display: none; }
  dl.kv { grid-template-columns: 1fr; gap: 2px; } dl.kv dd { margin-bottom: 8px; }
  .who .nm, .who .rl { display: none; }
}
@media (max-width: 520px) { .g4 { grid-template-columns: 1fr 1fr; } .stat .v { font-size: 20px; } .chat { height: 70vh; } .bubble { max-width: 92%; } }

/* layout fixes */
.btn.menu-btn { display: none; }
.top .crumb { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .sp { flex: 0; }
@media (max-width: 860px) { .btn.menu-btn { display: inline-flex; } .top .crumb { font-size: 13px; } }
.split > .card + .card, .grid > .card + .card, .split > .card + .estimate { margin-top: 0; }

.add-expert > summary::-webkit-details-marker { display: none; }
.add-expert[open] > summary { border-bottom: 1px solid var(--line-2); }

/* =========================================================
   Motion & polish — subtle, fast (≤ 400 ms), never blocks input
   ========================================================= */
:root { --ease: cubic-bezier(.2,.7,.2,1); --shadow-hover: 0 2px 4px rgba(18,32,58,.06), 0 12px 28px rgba(18,32,58,.10); }

/* Page content rises in, staggered */
@keyframes ie-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.content > *, .auth-form .box > * { animation: ie-rise .45s var(--ease) both; }
.content > *:nth-child(2), .auth-form .box > *:nth-child(2) { animation-delay: .04s; }
.content > *:nth-child(3), .auth-form .box > *:nth-child(3) { animation-delay: .08s; }
.content > *:nth-child(4), .auth-form .box > *:nth-child(4) { animation-delay: .12s; }
.content > *:nth-child(n+5), .auth-form .box > *:nth-child(n+5) { animation-delay: .16s; }
.grid > .card { animation: ie-rise .45s var(--ease) both; }
.grid > .card:nth-child(2) { animation-delay: .05s; } .grid > .card:nth-child(3) { animation-delay: .1s; } .grid > .card:nth-child(4) { animation-delay: .15s; }

/* Cards & stats lift on hover */
.card { transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s; }
a.card:hover, .stack > .card:hover, .stat:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); text-decoration: none; }
a.card.stat.accent { position: relative; overflow: hidden; }
a.card.stat.accent::after { content: "→"; position: absolute; right: 16px; bottom: 14px; color: var(--red); opacity: 0; transform: translateX(-6px); transition: .25s var(--ease); font-weight: 700; }
a.card.stat.accent:hover::after { opacity: 1; transform: none; }
.stat .v { font-variant-numeric: tabular-nums; }

/* Buttons: smooth colour, gentle lift, tactile press */
.btn { transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .12s var(--ease); }
.btn:hover { box-shadow: 0 4px 14px rgba(18,32,58,.14); }
.btn.red { background-image: linear-gradient(180deg, #e0574f, var(--red)); }
.btn.red:hover { box-shadow: 0 6px 18px rgba(214,69,61,.32); }
.btn.green:hover { box-shadow: 0 6px 18px rgba(31,138,91,.28); }
.btn.ghost:hover, .btn.danger:hover { box-shadow: none; }
.btn:active { transform: scale(.97); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgba(47,91,211,.35); outline-offset: 2px; }
.btn.is-busy { pointer-events: none; opacity: .75; }
.btn.is-busy::before { content: ""; width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ie-spin .7s linear infinite; }
@keyframes ie-spin { to { transform: rotate(360deg); } }

/* Sidebar: animated hover & active marker */
.nav a { transition: background-color .2s, color .2s, padding-left .2s var(--ease); }
.nav a:hover { padding-left: 16px; }
.nav a.on { background: linear-gradient(90deg, var(--ink-3), rgba(42,61,99,.55)); }
.nav a .n { animation: ie-pop .4s var(--ease) both .3s; }
@keyframes ie-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.brand svg { transition: transform .5s var(--ease); }
.brand:hover svg { transform: rotate(-8deg) scale(1.05); }

/* Glassy top bar */
.top { background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }

/* Tables, inputs, badges */
tbody tr { transition: background-color .15s; }
input, select, textarea { transition: border-color .15s, box-shadow .2s, background-color .2s; }
input:hover:not(:focus):not([readonly]):not(:disabled), select:hover:not(:focus), textarea:hover:not(:focus) { border-color: #aeb7c8; }
.badge { transition: transform .2s var(--ease); }
tr:hover .badge { transform: translateX(1px); }

/* Alerts slide in and can fade away */
@keyframes ie-slide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.alert { animation: ie-slide .35s var(--ease) both; transition: opacity .4s, transform .4s, max-height .4s, margin .4s, padding .4s; max-height: 300px; overflow: hidden; }
.alert.is-leaving { opacity: 0; transform: translateY(-6px); max-height: 0; margin: 0; padding-top: 0; padding-bottom: 0; }

/* Details (Add expert / Edit price) open smoothly */
details[open] > :not(summary) { animation: ie-rise .3s var(--ease) both; }

/* Chat bubbles pop in */
.bubble { animation: ie-rise .3s var(--ease) both; }

/* Estimate panel: soft glow + price pulse on change */
.estimate { background: radial-gradient(120% 90% at 100% 0%, rgba(214,69,61,.22), transparent 55%), var(--ink); box-shadow: 0 18px 40px rgba(18,32,58,.25); }
.estimate .price.bump { animation: ie-bump .35s var(--ease); }
@keyframes ie-bump { 40% { transform: scale(1.05); color: #ffb3ad; } }

/* Login / register artwork: slow-moving rings and a drawn strike-through */
.auth-art::before { content: ""; position: absolute; left: -160px; top: -160px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(214,69,61,.18), transparent 65%); animation: ie-float 9s ease-in-out infinite; }
.auth-art::after { animation: ie-float 12s ease-in-out infinite reverse; }
@keyframes ie-float { 50% { transform: translate(18px, -14px) scale(1.04); } }
.auth-art > * { position: relative; z-index: 1; }
.auth-art h1 em { text-decoration: none; background: linear-gradient(var(--red), var(--red)) no-repeat 0 55% / 0 3px; animation: ie-strike .6s .5s var(--ease) forwards; }
@keyframes ie-strike { to { background-size: 100% 3px; } }
.auth-art li { animation: ie-rise .5s var(--ease) both; }
.auth-art li:nth-child(1) { animation-delay: .35s; } .auth-art li:nth-child(2) { animation-delay: .45s; } .auth-art li:nth-child(3) { animation-delay: .55s; } .auth-art li:nth-child(4) { animation-delay: .65s; }
.tabs a { transition: background-color .2s, color .2s, box-shadow .2s; }

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .auth-art h1 em { background-size: 100% 3px; }
}

/* Installable-app bits */
.side-foot .install-btn { margin-bottom: 10px; }
[hidden] { display: none !important; }
@media (display-mode: standalone) { .top { padding-top: env(safe-area-inset-top); height: calc(60px + env(safe-area-inset-top)); } }
.install-card { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; box-shadow: var(--shadow); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.install-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.install-card img { border-radius: 10px; flex: none; }
.install-card b { display: block; color: var(--ink); font-size: 14px; }
.install-card span:not(.btn) { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }
.install-card .btn { margin-left: auto; flex: none; }
.install-top { margin-right: 2px; }
@media (max-width: 860px) { .install-top span { display: none; } .install-top { padding: 5px 9px; } }
.install-dialog { border: 0; border-radius: 14px; padding: 22px; max-width: 360px; width: calc(100% - 32px); box-shadow: 0 24px 60px rgba(18,32,58,.35); animation: ie-rise .3s var(--ease) both; }
.install-dialog::backdrop { background: rgba(18,32,58,.45); }
.install-dialog ol { padding-left: 20px; margin: 14px 0 18px; display: grid; gap: 8px; font-size: 14px; }

/* Division switcher (Editing & Writing / Digital & AI Studio) */
.division-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.division-switch.with-all { grid-template-columns: .7fr 1fr 1fr; }
.dv-tab { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); box-shadow: var(--shadow); transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .2s, background-color .2s; }
.dv-tab:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.dv-tab b { display: block; color: var(--ink); font-size: 14px; }
.dv-tab b em { font-style: normal; font-size: 11px; background: var(--grey-soft); color: var(--muted); border-radius: 99px; padding: 1px 7px; margin-left: 4px; vertical-align: 1px; }
.dv-tab small { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; }
.dv-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; font-weight: 700; flex: none; background: var(--grey-soft); color: var(--ink); }
.dv-tab.editorial .dv-ic { background: var(--red-soft); color: var(--red); }
.dv-tab.digital .dv-ic { background: #efe9ff; color: #6a3fd4; }
.dv-tab.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow); }
.dv-tab.editorial.on { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), var(--shadow); }
.dv-tab.digital.on { border-color: #6a3fd4; box-shadow: 0 0 0 1px #6a3fd4, var(--shadow); }
.dv-chip { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 6px; letter-spacing: .02em; }
.dv-chip.editorial { background: var(--red-soft); color: var(--red); }
.dv-chip.digital { background: #efe9ff; color: #6a3fd4; }
.division-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.division-pick a { display: block; padding: 26px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); color: var(--text); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.division-pick a:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.division-pick .dv-ic { width: 52px; height: 52px; font-size: 24px; border-radius: 14px; margin-bottom: 14px; }
.division-pick a.editorial .dv-ic { background: var(--red-soft); color: var(--red); }
.division-pick a.digital .dv-ic { background: #efe9ff; color: #6a3fd4; }
.division-pick h2 { font-size: 19px; }
.division-pick p { color: var(--muted); margin: 6px 0 12px; }
.division-pick ul { margin: 0 0 16px; padding-left: 18px; color: var(--text); font-size: 13.5px; display: grid; gap: 4px; }
@media (max-width: 860px) { .division-switch, .division-switch.with-all, .division-pick { grid-template-columns: 1fr; } .dv-tab small { display: none; } }
.delivery-link { padding: 12px; border-radius: 10px; background: var(--bg); margin: 4px 0 6px; }

/* =========================================================
   Public site: landing page + Infinity Journal
   ========================================================= */
body.pub { background: #fff; }
.pub .btn.lg { padding: 13px 22px; font-size: 15px; border-radius: 10px; }
.btn.glass { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn.glass:hover { background: rgba(255,255,255,.2); box-shadow: none; }
.linklike { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; }
.center { text-align: center; margin-top: 28px; }
.pub-nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(16px, 4vw, 48px); background: rgba(18,32,58,.82); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(255,255,255,.08); }
.pub-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 16px; }
.pub-brand:hover { text-decoration: none; }
.pub-nav nav { display: flex; align-items: center; gap: 18px; }
.pub-nav nav a:not(.btn) { color: #c9d2e6; font-weight: 500; font-size: 14px; }
.pub-nav nav a:not(.btn):hover, .pub-nav nav a.on { color: #fff; text-decoration: none; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: clamp(56px, 9vw, 110px) clamp(16px, 4vw, 48px) clamp(60px, 8vw, 100px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: center; }
.hero-bg, .hero-bg span { position: absolute; pointer-events: none; }
.hero-bg { inset: 0; }
.blob { border-radius: 50%; filter: blur(60px); opacity: .55; }
.b1 { width: 520px; height: 520px; background: #d6453d; top: -180px; right: -120px; animation: ie-drift 16s ease-in-out infinite; }
.b2 { width: 460px; height: 460px; background: #6a3fd4; bottom: -220px; left: -120px; animation: ie-drift 20s ease-in-out infinite reverse; }
.b3 { width: 300px; height: 300px; background: #2f5bd3; top: 30%; left: 45%; opacity: .35; animation: ie-drift 24s ease-in-out infinite; }
.grid-lines { inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%); }
@keyframes ie-drift { 33% { transform: translate(40px, 30px) scale(1.06); } 66% { transform: translate(-30px, 20px) scale(.96); } }
.hero-in, .hero-cards { position: relative; z-index: 1; }
.hero-badge { display: inline-block; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-size: 13px; color: #e3e8f5; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; }
.rotator { display: inline-block; color: #ff8b82; position: relative; }
.rot-word { display: inline-block; background: linear-gradient(90deg, #ff8b82, #ffb3ad 40%, #c7b5ff); -webkit-background-clip: text; background-clip: text; color: transparent; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.rot-word.out { opacity: 0; transform: translateY(-14px); }
.rot-word.in { opacity: 0; transform: translateY(14px); }
.hero-sub { color: #c4cde2; font-size: clamp(16px, 1.6vw, 19px); max-width: 560px; margin: 18px 0 26px; line-height: 1.6; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: inherit; }
.hero-proof { display: flex; gap: clamp(18px, 3vw, 40px); margin-top: 36px; flex-wrap: wrap; }
.hero-proof b { display: block; font-size: 26px; color: #fff; }
.hero-proof span { font-size: 12px; color: #9aa7c4; text-transform: uppercase; letter-spacing: .08em; }
.hero-cards { height: 360px; }
.float-card { position: absolute; width: 270px; background: rgba(255,255,255,.95); color: var(--text); border-radius: 14px; padding: 14px 16px; box-shadow: 0 24px 50px rgba(0,0,0,.35); display: grid; gap: 4px; animation: ie-bob 6s ease-in-out infinite; }
.float-card b { color: var(--ink); font-size: 14px; } .float-card small { color: var(--muted); font-size: 12px; }
.float-card .bar { display: block; height: 6px; background: var(--grey-soft); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.float-card .bar em { display: block; height: 100%; background: linear-gradient(90deg, var(--red), #ff8b82); border-radius: 99px; animation: ie-grow 1.6s .6s var(--ease) both; }
.fc1 { top: 0; left: 10%; } .fc2 { top: 120px; right: 0; animation-delay: -2s; } .fc3 { top: 240px; left: 0; animation-delay: -4s; }
.fc2 .bar em, .fc3 .bar em { background: linear-gradient(90deg, #6a3fd4, #c7b5ff); }
@keyframes ie-bob { 50% { transform: translateY(-10px); } }
@keyframes ie-grow { from { width: 0 !important; } }

/* Sections */
.pub-section { padding: clamp(56px, 7vw, 90px) clamp(16px, 4vw, 48px); max-width: 1200px; margin: 0 auto; }
.pub-section.alt { max-width: none; background: var(--bg); }
.pub-section.alt > * { max-width: 1104px; margin-left: auto; margin-right: auto; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.02em; }
.sec-head p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.studio { position: relative; overflow: hidden; display: block; padding: 30px; border-radius: 18px; border: 1px solid var(--line); background: #fff; color: var(--text); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.studio::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -90px; border-radius: 50%; opacity: .12; transition: transform .5s var(--ease); }
.studio.editorial::after { background: var(--red); } .studio.digital::after { background: #6a3fd4; }
.studio:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.studio:hover::after { transform: scale(1.25); }
.studio .dv-ic { width: 54px; height: 54px; font-size: 24px; border-radius: 14px; margin-bottom: 16px; }
.studio.editorial .dv-ic { background: var(--red-soft); color: var(--red); } .studio.digital .dv-ic { background: #efe9ff; color: #6a3fd4; }
.studio h3 { font-size: 22px; } .studio p { color: var(--muted); margin: 8px 0 14px; }
.studio ul { padding-left: 18px; margin: 0 0 18px; display: grid; gap: 6px; }
.studio-go { font-weight: 700; color: var(--red); } .studio.digital .studio-go { color: #6a3fd4; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.step span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 12px; }
.step h4 { margin: 0 0 6px; color: var(--ink); font-size: 16px; } .step p { color: var(--muted); font-size: 14px; margin: 0; }
.cta-band { margin: 0 clamp(16px, 4vw, 48px) clamp(56px, 7vw, 90px); border-radius: 24px; padding: clamp(36px, 6vw, 64px); text-align: center; color: #fff; background: radial-gradient(120% 120% at 0% 0%, rgba(214,69,61,.55), transparent 50%), radial-gradient(120% 120% at 100% 100%, rgba(106,63,212,.55), transparent 50%), var(--ink); }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.6vw, 40px); } .cta-band p { color: #c4cde2; margin: 10px auto 24px; max-width: 560px; }
.cta-band .hero-cta { justify-content: center; }
.pub-foot { background: #0d1830; color: #9aa7c4; padding: 36px clamp(16px, 4vw, 48px) 22px; }
.pub-foot-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; }
.pub-foot b { color: #fff; font-size: 16px; } .pub-foot p { margin: 6px 0 0; } .pub-foot a { color: #c9d2e6; }
.pub-foot-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.pub-foot-copy { max-width: 1200px; margin: 22px auto 0; font-size: 12px; border-top: 1px solid rgba(255,255,255,.07); padding-top: 16px; }

/* Scroll reveal (JS adds .is-visible; without JS everything is visible) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Journal */
.j-hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 48px); text-align: center; }
.j-hero-in { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.j-mast { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #9aa7c4; }
.j-mast span { color: #ff8b82; font-weight: 800; }
.j-hero h1, .j-article h1, .j-lead h2, .j-card h3, .ja-abstract h2, .prose-j h2, .prose-j h3 { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif; }
.j-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 56px); font-weight: 700; letter-spacing: -.01em; margin: 14px 0 12px; }
.j-hero p { color: #c4cde2; font-size: 17px; max-width: 620px; margin: 0 auto 24px; }
.j-search { display: flex; gap: 8px; max-width: 560px; margin: 0 auto; }
.j-search input { flex: 1; border-radius: 10px; border: 0; padding: 12px 14px; }
.j-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; align-items: center; }
.j-filters a { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 13.5px; background: #fff; transition: .2s; }
.j-filters a:hover { text-decoration: none; border-color: var(--ink); }
.j-filters a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.j-filters a em { font-style: normal; opacity: .7; margin-left: 4px; }
.j-filters .rss { margin-left: auto; border-color: transparent; color: var(--amber); }
.cover-art { display: block; width: 100%; height: 100%; }
.j-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.j-cover .cover-art { transition: transform .8s var(--ease); }
.j-type { position: absolute; left: 12px; top: 12px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: rgba(255,255,255,.92); color: var(--ink); }
.j-type.review { color: #16575a; } .j-type.research { color: var(--red); }
.ja-kicker .j-type, .j-body .j-type { position: static; }
.j-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.j-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; color: var(--text); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.j-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.j-card:hover .cover-art, .j-lead:hover .cover-art { transform: scale(1.06); }
.j-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.j-meta { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.j-card h3 { font-size: 19px; line-height: 1.3; color: var(--ink); }
.j-card p { color: var(--muted); font-size: 14px; margin: 0; flex: 1; }
.j-authors { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.j-lead { display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #fff; color: var(--text); box-shadow: var(--shadow); margin-bottom: 26px; transition: box-shadow .3s var(--ease); }
.j-lead:hover { text-decoration: none; box-shadow: var(--shadow-hover); }
.j-lead .j-cover { aspect-ratio: auto; min-height: 300px; }
.j-lead .j-body { padding: 30px; justify-content: center; }
.j-lead h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; color: var(--ink); }
.j-lead p { color: var(--muted); font-size: 15px; margin: 0; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.j-about { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.j-about h3 { font-size: 16px; margin-bottom: 6px; } .j-about p { color: var(--muted); font-size: 14px; }

/* Article page */
.read-progress { position: sticky; top: 57px; height: 3px; z-index: 29; background: transparent; }
.read-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), #6a3fd4); }
.preview-bar { background: var(--amber-soft); color: #7a4f0e; text-align: center; padding: 8px; font-size: 13px; }
.ja-head { position: relative; overflow: hidden; color: #fff; min-height: 360px; display: flex; align-items: flex-end; }
.ja-cover { position: absolute; inset: 0; }
.ja-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,24,48,.35), rgba(13,24,48,.92)); }
.ja-head-in { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; width: 100%; padding: 48px clamp(16px, 4vw, 48px) 36px; }
.ja-back { color: #c9d2e6; font-size: 13px; } .ja-back:hover { color: #fff; }
.ja-kicker { margin: 18px 0 12px; font-size: 13px; color: #c9d2e6; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.j-article h1 { color: #fff; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.15; font-weight: 700; }
.ja-authors { margin-top: 14px; color: #e3e8f5; } .ja-id { margin-top: 6px; font-size: 12px; color: #9aa7c4; }
.ja-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 48px; justify-content: center; padding: 40px clamp(16px, 4vw, 48px) 20px; }
.ja-side { position: sticky; top: 90px; align-self: start; display: grid; gap: 18px; }
.ja-toc { display: grid; gap: 8px; font-size: 13px; border-left: 2px solid var(--line); padding-left: 14px; }
.ja-toc b { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ja-toc a { color: var(--ink-3); } .ja-toc a.on { color: var(--red); font-weight: 600; }
.ja-abstract { background: var(--bg); border-left: 4px solid var(--red); border-radius: 0 12px 12px 0; padding: 20px 24px; margin-bottom: 32px; }
.ja-abstract h2 { font-size: 18px; margin-bottom: 8px; } .ja-abstract p { font-size: 15.5px; line-height: 1.7; }
.ja-kw { font-size: 13px; margin-top: 10px; } .ja-kw .tag { margin-left: 4px; }
.prose-j { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-size: 18.5px; line-height: 1.8; color: #1e2532; }
.prose-j h2 { font-size: 27px; margin: 40px 0 12px; color: var(--ink); scroll-margin-top: 90px; }
.prose-j h3 { font-size: 21px; margin: 28px 0 10px; color: var(--ink); }
.prose-j p { margin: 0 0 18px; }
.prose-j ul, .prose-j ol { margin: 0 0 18px; padding-left: 24px; } .prose-j li { margin-bottom: 6px; }
.prose-j blockquote { margin: 26px 0; padding: 6px 0 6px 22px; border-left: 3px solid #6a3fd4; font-size: 22px; font-style: italic; color: var(--ink-3); }
.prose-j .takeaway { margin: 22px 0; padding: 16px 20px; border-radius: 12px; background: #efe9ff; color: #3b2a7a; font-family: var(--font); font-size: 15.5px; }
.prose-j hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.prose-j a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose-j code { font-size: .85em; background: var(--grey-soft); padding: 1px 5px; border-radius: 4px; }
.ja-cite { margin-top: 40px; padding: 20px 24px; border-radius: 12px; border: 1px solid var(--line); background: #fafbfd; }
.ja-cite p { font-size: 13px; line-height: 1.6; word-break: break-word; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; } .hero-cards { display: none; }
  .steps { grid-template-columns: 1fr 1fr; } .j-grid { grid-template-columns: 1fr 1fr; }
  .ja-layout { grid-template-columns: 1fr; gap: 20px; } .ja-side { position: static; } .ja-toc { display: none; }
}
@media (max-width: 680px) {
  .studio-grid, .steps, .j-grid, .j-about, .j-lead { grid-template-columns: 1fr; }
  .hide-sm { display: none; } .pub-nav nav { gap: 12px; }
  .j-lead .j-cover { min-height: 200px; } .prose-j { font-size: 17.5px; }
  .hero-proof b { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }
.pub-nav nav a, .pub-brand span { white-space: nowrap; }
@media (max-width: 420px) { .pub-brand span { display: none; } .pub-nav nav { gap: 14px; } .pub-nav nav a:not(.btn) { font-size: 13.5px; } }
/* Keep the rotating word on its own line so the hero text never jumps around */
.hero h1 .rotator { display: block; white-space: nowrap; min-height: 1.06em; }
@media (max-width: 420px) { .hero h1 { font-size: 31px; } }
.ja-sub { color: #dfe5f3; font-size: clamp(17px, 2vw, 21px); margin: 10px 0 0; font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-style: italic; }
.prose-j .cite { font-family: var(--font); font-size: .72em; vertical-align: .35em; white-space: nowrap; color: var(--muted); }
.prose-j .cite a { color: var(--blue); text-decoration: none; padding: 0 1px; }
.prose-j .cite a:hover { text-decoration: underline; }
.prose-j .ref { display: grid; grid-template-columns: 34px 1fr; gap: 6px; font-family: var(--font); font-size: 13.5px; line-height: 1.6; margin: 0 0 10px; color: var(--text); scroll-margin-top: 90px; word-break: break-word; }
.prose-j .ref-n { color: var(--muted); font-weight: 700; text-align: right; }
.prose-j .ref a { color: var(--blue); text-decoration: none; }
.prose-j .ref:target { background: #fff6d9; border-radius: 6px; }

/* ---------- Services catalogue ---------- */
.svc-hero { background: radial-gradient(90% 120% at 100% 0%, rgba(214,69,61,.35), transparent 55%), var(--ink); color: #fff; padding: clamp(56px, 8vw, 100px) clamp(16px, 4vw, 48px) clamp(40px, 6vw, 70px); }
.svc-hero-in { max-width: 920px; margin: 0 auto; text-align: center; }
.svc-hero .eyebrow { color: #ff8b82; }
.svc-hero h1 { color: #fff; font-size: clamp(30px, 5vw, 54px); letter-spacing: -.03em; line-height: 1.08; margin: 12px 0 14px; }
.svc-hero h1 span { color: #ff8b82; }
.svc-hero p { color: rgba(255,255,255,.78); font-size: clamp(15px, 1.8vw, 18px); max-width: 720px; margin: 0 auto; }
.svc-hero .hero-cta { justify-content: center; margin-top: 26px; }
.svc-jump { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 30px; }
.svc-jump a { color: #fff; text-decoration: none; font-size: 13px; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); }
.svc-jump a:hover { background: rgba(255,255,255,.16); }
.svc-feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.svc-group { margin-top: 26px; scroll-margin-top: 80px; }
.svc-group-h { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.svc-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .2s, border-color .2s, transform .2s; }
.svc-card:hover { box-shadow: var(--shadow); border-color: #d5dbe7; }
.svc-card.featured { border-top: 3px solid var(--red); }
.svc-card h3, .svc-card h4 { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.svc-card h4 { font-size: 15.5px; }
.svc-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.svc-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.ver-chip { flex: none; font-size: 11px; font-weight: 700; color: var(--green); background: var(--green-soft); border-radius: 99px; padding: 3px 8px; white-space: nowrap; }
.svc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; font-size: 13px; color: var(--muted); }
.svc-foot b { color: var(--text); }
details.svc-card summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 10px; }
details.svc-card summary::-webkit-details-marker { display: none; }
.svc-more { color: var(--red); font-weight: 600; }
.svc-more::after { content: " ▾"; }
details[open] .svc-more::after { content: " ▴"; }
.svc-detail { border-top: 1px solid var(--line-2); padding-top: 10px; display: grid; gap: 10px; }
.svc-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; }
.svc-list li { position: relative; padding-left: 20px; }
.svc-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.integrity-list { list-style: none; padding: 0; margin: 0 auto 18px; max-width: 760px; display: grid; gap: 10px; }
.integrity-list li { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 10px; padding: 12px 14px; font-size: 14.5px; }
.verified-band { max-width: 1104px; }
.vb-in { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 24px; align-items: center; border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 36px); background: linear-gradient(135deg, var(--green-soft), #fff 60%); }
.vb-in h2 { margin: 6px 0 8px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.02em; }
.vb-in p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .vb-in { grid-template-columns: 1fr; } }

/* Service details inside the project form */
.svc-info { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 4px 0 14px; display: grid; gap: 8px; }
.svc-info[hidden], .integrity[hidden] { display: none; }
.svc-blurb { font-size: 14px; }

/* ---------- Verification ---------- */
.ver-issued { display: flex; gap: 14px; align-items: center; }
.ver-issued img { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 4px; flex: none; }
.ver-form .check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; margin: 6px 0; }
.ver-page { max-width: 820px; }
.ver-page h1 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.02em; margin: 4px 0; }
.ver-lookup { display: flex; gap: 10px; max-width: 460px; margin: 0 auto 14px; }
.ver-lookup input { flex: 1; min-width: 0; text-transform: uppercase; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; }
.ver-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: 16px; padding: clamp(18px, 4vw, 32px); box-shadow: var(--shadow); }
.ver-card.revoked { border-top-color: var(--red); }
.ver-card h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 0 8px; }
.ver-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-bottom: 18px; }
.ver-seal { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 800; color: #fff; background: var(--green); box-shadow: 0 0 0 6px var(--green-soft); }
.ver-card.revoked .ver-seal { background: var(--red); box-shadow: 0 0 0 6px var(--red-soft); }
.ver-card .eyebrow { color: var(--green); }
.ver-card.revoked .eyebrow { color: var(--red); }
.ver-qr { border: 1px solid var(--line); border-radius: 10px; padding: 4px; background: #fff; }
.ver-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ver-list li { display: flex; gap: 10px; font-size: 14.5px; }
.ver-list li span { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--green-soft); color: var(--green); }
.ver-list li.not { color: var(--faint); }
.ver-list li.not span { background: var(--grey-soft); color: var(--faint); }
.ver-list em { font-style: normal; font-size: 12.5px; }
.ver-note { margin: 22px 0 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
@media (max-width: 560px) { .ver-head { grid-template-columns: auto minmax(0, 1fr); } .ver-qr { grid-column: 1 / -1; justify-self: start; } }

/* Language switch */
.lang-switch { font-size: 13px; font-weight: 600; text-decoration: none; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--text); background: #fff; white-space: nowrap; }
.lang-switch:hover { border-color: var(--red); color: var(--red); }
.pub-nav .lang-switch { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); }
.pub-nav .lang-switch:hover { background: rgba(255,255,255,.18); color: #fff; }
.auth { position: relative; }
.auth-lang { position: absolute; top: 16px; right: 16px; z-index: 2; }
html[lang="hi"] body { font-family: "Inter", "Noto Sans Devanagari", "Nirmala UI", "Mangal", system-ui, sans-serif; }

/* "by Ontesta" endorsement */
.pub-brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.pub-brand-txt small { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.62); margin-top: 2px; }
.foot-by { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.pub-foot-copy a { color: inherit; }
@media (max-width: 420px) { .pub-brand-txt small { display: none; } }
