/* Opus Solutions: Opus Banking (/opus-banking/), Contact (/contact/), profile pages (/dennis-tedja/) and the 404 page. Loaded after pages.css. */

/* ---------- Opus Banking ---------- */
.bk-hero { padding: calc(var(--nav-h) + clamp(48px, 7vw, 104px)) 0 clamp(56px, 7vw, 104px); }
.bk-hero__in { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.bk-hero__copy { display: flex; flex-direction: column; gap: 20px; }
.bk-lede { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; color: var(--text); max-width: 34em; letter-spacing: -0.005em; }
.bk-sub { font-size: 16px; line-height: 1.6; color: var(--soft); max-width: 40em; }
.bk-hero__btns { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 8px; }
.bk-hero__media { position: relative; margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line); }
.bk-hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: bkDrift 18s var(--ease) infinite alternate; }
.bk-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 11, 11, 0) 40%, rgba(14, 11, 11, 0.78) 100%); }
@keyframes bkDrift { from { transform: scale(1.04) translateY(0); } to { transform: scale(1.1) translateY(-2%); } }
.bk-glass { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; padding: 18px 20px; border-radius: 10px; background: rgba(23, 23, 23, 0.62); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.bk-glass ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--prose); }
.bk-glass li { display: flex; gap: 10px; align-items: baseline; }
.bk-glass b { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--text); min-width: 58px; }

.bk-sec { padding: clamp(72px, 9vw, 128px) 0; border-top: 1px solid var(--line); }
.bk-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(36px, 4.5vw, 60px); }
.bk-split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.bk-split .h2 { margin-top: 14px; max-width: 12em; }
.bk-prose p, .bk-prose__p { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--prose); max-width: 38em; }
.bk-prose p + p { margin-top: 1.1em; }
.bk-prose__p { margin-top: 22px; }

.bk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: clamp(44px, 5vw, 72px); background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.bk-stat { background: var(--bg); padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 14px; min-height: 220px; }
.bk-num { font-family: var(--serif); font-size: clamp(64px, 7vw, 108px); line-height: 0.95; letter-spacing: -0.02em; margin-top: auto; }
.bk-stat__t { font-size: 14px; color: var(--soft); max-width: 24ch; }

.bk-exp { background: radial-gradient(ellipse 70% 90% at 12% 60%, rgba(70, 91, 255, 0.16) 0%, rgba(14, 11, 11, 0) 70%); }
.bk-exp__in { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 7vw, 120px); align-items: center; }
.bk-exp__num { display: flex; flex-direction: column; gap: 12px; }
.bk-exp__num > span:first-child { font-family: var(--serif); font-size: clamp(120px, 17vw, 250px); line-height: 0.85; letter-spacing: -0.04em; background: linear-gradient(180deg, #fff 0%, #a0b6ff 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bk-exp__copy .h2 { margin-top: 14px; }

.bk-sol { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.bk-sol li { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; align-items: center; padding: clamp(22px, 2.4vw, 32px) 0; border-top: 1px solid var(--line); }
.bk-sol li::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--blue-300); transition: width 0.7s var(--ease-out); }
.bk-sol li:hover::before { width: 100%; }
.bk-sol__n { font-family: var(--serif); font-size: 28px; color: var(--soft); transition: color 0.3s; }
.bk-sol h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; transition: transform 0.4s var(--ease-out); }
.bk-sol p { color: var(--soft); font-size: 15px; line-height: 1.55; max-width: 44ch; }
.bk-sol li:hover .bk-sol__n { color: var(--blue-300); }
.bk-sol li:hover h3 { transform: translateX(8px); }

.bk-adv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bk-card { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 2.4vw, 32px); border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color 0.3s, transform 0.4s var(--ease-out), background-color 0.3s; }
.bk-card img { width: 72px; height: 72px; margin-bottom: 12px; }
.bk-card h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; }
.bk-card p { color: var(--soft); font-size: 15px; line-height: 1.55; }
.bk-card .link-arrow { margin-top: auto; padding-top: 10px; }
.bk-card--link:hover { border-color: var(--line-2); background: var(--bg-3); transform: translateY(-3px); }

.cbot { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: clamp(40px, 5vw, 72px); padding: clamp(24px, 4vw, 56px); border-radius: 12px; border: 1px solid var(--line); background: radial-gradient(ellipse 80% 120% at 0% 100%, #151a3d 0%, #0f0f14 55%, #0E0B0B 100%); scroll-margin-top: calc(var(--nav-h) + 24px); }
.cbot__viz { position: relative; width: 100%; max-width: 420px; margin: 0 auto; aspect-ratio: 1; }
.cbot__viz svg { width: 100%; height: 100%; overflow: visible; }
.cbot__track { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 3 6; }
.cbot__arc { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 942.48; stroke-dashoffset: 824.67; transition: stroke-dashoffset 0.9s var(--ease-out); filter: drop-shadow(0 0 8px rgba(70, 91, 255, 0.55)); }
.cbot__node circle { fill: var(--bg-2); stroke: var(--line-2); stroke-width: 1.5; transition: fill 0.4s, stroke 0.4s; }
.cbot__node text { fill: var(--soft); font-family: var(--serif); font-size: 22px; text-anchor: middle; transition: fill 0.4s; }
.cbot__node.is-done circle { stroke: var(--blue); }
.cbot__node.is-done text { fill: var(--text); }
.cbot__node.is-on circle { fill: var(--blue); stroke: var(--blue-300); }
.cbot__node.is-on text { fill: #fff; }
.cbot__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; pointer-events: none; }
.cbot__name { font-family: var(--serif); font-size: clamp(40px, 4.4vw, 64px); line-height: 1; }
.cbot__step { color: var(--blue-300); }
.cbot__tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cbot__tabs [role="tab"] { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 14px 18px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); font-size: 15px; color: var(--soft); text-align: left; overflow: hidden; transition: color 0.3s, border-color 0.3s, background-color 0.3s; }
.cbot__tabs [role="tab"]:hover { color: var(--text); }
.cbot__tabs [role="tab"][aria-selected="true"] { color: var(--text); border-color: var(--line-2); background: rgba(70, 91, 255, 0.1); }
.cbot__k { font-family: var(--serif); font-size: 20px; line-height: 1; }
.cbot__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
.cbot__bar span { display: block; height: 100%; width: 0; background: var(--blue-300); }
.cbot.is-auto [aria-selected="true"] .cbot__bar span { animation: cbotFill var(--cbot-ms, 4800ms) linear forwards; }
.cbot:not(.is-auto) [aria-selected="true"] .cbot__bar span { width: 100%; }
@keyframes cbotFill { to { width: 100%; } }
.cbot__panels { margin-top: 26px; min-height: 6.2em; }
.cbot__panels p { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.3; color: var(--text); animation: cbotIn 0.6s var(--ease-out); }
@keyframes cbotIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cbot__note { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--soft); font-size: 15px; line-height: 1.6; }

.bk-comp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.bk-comp__i { background: var(--bg); padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 10px; transition: background-color 0.3s; }
.bk-comp__i:hover { background: var(--bg-2); }
.bk-comp__i img { width: 64px; height: 64px; margin-bottom: 14px; transition: transform 0.5s var(--ease-out); }
.bk-comp__i:hover img { transform: translateY(-4px) rotate(-6deg); }
.bk-comp__i h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.bk-comp__i p { color: var(--soft); font-size: 15px; line-height: 1.55; }

.bk-esg { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 56px); border-radius: 12px; background: linear-gradient(135deg, #1a1d18 0%, #121411 60%, #0E0B0B 100%); border: 1px solid var(--line); }
.bk-esg img { width: clamp(96px, 12vw, 160px); height: auto; }
.bk-esg .h2 { margin: 12px 0 18px; max-width: 18em; }
.bk-esg p:last-child { color: var(--prose); font-size: 17px; line-height: 1.6; max-width: 46em; }

/* ---------- Contact ---------- */
.ct-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-bottom: clamp(64px, 8vw, 112px); }
.ct-h { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; margin-bottom: 22px; }
.ct-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); font-size: 15px; }
.ct-item:last-child { border-bottom: 1px solid var(--line); }
.ct-item p { color: var(--prose); line-height: 1.55; }
.ct-item a { color: var(--text); width: fit-content; border-bottom: 1px solid var(--line-2); transition: border-color 0.2s; overflow-wrap: anywhere; }
.ct-item a:hover { border-color: var(--text); }
.ct-big { font-size: 17px; }
.ct-copy { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 4px; border: 1px solid var(--line-2); font-size: 13px; color: var(--soft); transition: color 0.2s, border-color 0.2s; }
.ct-copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.ct-copy:hover, .ct-copy.is-done { color: var(--text); border-color: var(--text); }

.ct-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: clamp(22px, 3vw, 40px); border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.ct-form .ct-h { grid-column: 1 / -1; margin-bottom: 6px; }
.ct-f { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--soft); min-width: 0; }
.ct-f--wide { grid-column: 1 / -1; }
.ct-f i { font-style: normal; color: var(--blue-300); }
.ct-f em { font-style: normal; color: var(--mute); }
.ct-f input, .ct-f textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line-2); border-radius: 6px; font: inherit; font-size: 16px; padding: 11px 12px; transition: border-color 0.2s, box-shadow 0.2s; }
.ct-f textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.ct-f input:focus, .ct-f textarea:focus { outline: none; border-color: var(--blue-300); box-shadow: 0 0 0 3px rgba(160, 182, 255, 0.18); }
.ct-f.is-bad input, .ct-f.is-bad textarea { border-color: #ff7a6b; }
.ct-f .ct-err { color: #ff9a8e; font-size: 12px; }
.ct-send { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.ct-note { color: var(--mute); font-size: 13px; max-width: 34ch; }
.ct-status { grid-column: 1 / -1; font-size: 14px; color: var(--blue-300); min-height: 1.4em; }

.ct-clocks { padding-bottom: clamp(24px, 4vw, 48px); }
.ct-clocks__row { display: flex; flex-wrap: wrap; gap: 1px; margin-top: 18px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.clock { flex: 1 1 200px; display: flex; align-items: center; gap: 14px; padding: 20px; background: var(--bg); }
.clock svg { width: 44px; height: 44px; flex: none; }
.clock svg circle:first-child { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.clock svg line { stroke: var(--text); stroke-linecap: round; transform-origin: 24px 24px; }
.clock svg .h { stroke-width: 2.4; }
.clock svg .m { stroke-width: 1.5; stroke: var(--blue-300); }
.clock svg .dot { fill: var(--text); }
.clock > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.clock__city { font-size: 12px; color: var(--soft); letter-spacing: 0.04em; text-transform: uppercase; }
.clock__time { font-family: var(--serif); font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.clock__time small { font-family: var(--sans); font-size: 12px; color: var(--mute); margin-left: 6px; }

/* ---------- 404 ---------- */
.nf-hero { padding-bottom: clamp(48px, 6vw, 88px); }
.nf-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.nf-latest { padding-bottom: clamp(64px, 8vw, 112px); }

/* ---------- Profile pages (/dennis-tedja/) ---------- */
.pf-hero .wrap { align-items: flex-start; }
.pf-crumbs { justify-content: flex-start; }
.pf-role { color: var(--blue-300); }
.pf-name { font-size: clamp(56px, 8vw, 128px); }
.pf-lede { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; color: var(--prose); max-width: 36em; letter-spacing: -0.005em; text-wrap: pretty; }
.pf-meta { list-style: none; width: 100%; margin: 18px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px 56px; font-size: 15px; }
.pf-meta li { display: flex; flex-direction: column; gap: 6px; }
.pf-link { width: fit-content; border-bottom: 1px solid var(--line-2); transition: border-color 0.2s; }
.pf-link:hover { border-color: var(--text); }
.pf-figs-wrap { padding-bottom: clamp(56px, 7vw, 96px); }
.pf-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pf-fig { background: var(--bg); padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.pf-num { font-family: var(--serif); font-size: clamp(56px, 6vw, 96px); line-height: 0.95; letter-spacing: -0.02em; }
.pf-fig__t { font-size: 14px; color: var(--soft); }
.pf-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.pf-list li { display: grid; grid-template-columns: 190px minmax(0, 1fr) 120px; gap: 24px; align-items: baseline; padding: clamp(18px, 2vw, 26px) 0; border-top: 1px solid var(--line); }
.pf-when { font-size: 13px; color: var(--soft); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.pf-list h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }
.pf-list p { color: var(--soft); font-size: 15px; margin-top: 4px; }
.pf-where { font-size: 13px; color: var(--mute); text-align: right; }
.pf-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.pf-tags li { min-height: 38px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); display: inline-flex; align-items: center; font-size: 15px; color: var(--prose); }
.pf-creds { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.pf-creds li { padding: 18px 0; border-top: 1px solid var(--line); }
.pf-creds h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.pf-creds p { color: var(--soft); font-size: 15px; margin-top: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .bk-comp { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .bk-hero__in, .bk-split, .bk-exp__in, .cbot, .ct-grid { grid-template-columns: minmax(0, 1fr); }
  .bk-hero__media { aspect-ratio: 4 / 3; }
  .bk-adv { grid-template-columns: minmax(0, 1fr); }
  .bk-sol li { grid-template-columns: 48px minmax(0, 1fr); row-gap: 8px; }
  .bk-sol li p { grid-column: 2; }
  .pf-list li { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .pf-where { text-align: left; }
}
@media (max-width: 640px) {
  .bk-stats { grid-template-columns: minmax(0, 1fr); }
  .bk-stat { min-height: 0; }
  .pf-figs { grid-template-columns: minmax(0, 1fr); }
  .pf-meta { gap: 16px 32px; }
  .bk-comp { grid-template-columns: minmax(0, 1fr); }
  .bk-esg { grid-template-columns: minmax(0, 1fr); }
  .cbot__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-form { grid-template-columns: minmax(0, 1fr); }
  .ct-item { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .ct-item > .label { grid-column: 1 / -1; }
  .clock { flex-basis: 140px; padding: 16px 14px; gap: 10px; }
  .clock svg { width: 36px; height: 36px; }
  .clock__time { font-size: 24px; }
  .clock__time small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bk-hero__media img { animation: none; }
  .cbot__arc { transition: none; }
  .cbot__panels p { animation: none; }
}
