/* Role pages: one page per security role along the Tamis lifecycle. */
.role-page main { background: var(--abyss); }
.role-hero { position: relative; padding: clamp(8.5rem, 14vw, 11rem) 0 clamp(4rem, 7vw, 6rem); background: radial-gradient(55% 60% at 80% 40%, rgba(22,110,112,.28), transparent 70%), var(--abyss); }
.role-hero-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.role-hero h1 { margin: 1.1rem 0 0; font-size: clamp(2.5rem, 5vw, 4.4rem); line-height: 1.02; color: var(--ink); }
.role-lede { max-width: 38rem; margin: 1.5rem 0 0; font-size: 1.12rem; line-height: 1.65; }
.role-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.role-note { margin: .85rem 0 0; color: #9fb6bb; font-size: .82rem; }

/* The cycle, with this page's role lit. */
.role-cycle { padding: 1.4rem 1.4rem 1.2rem; border-radius: 18px; background: rgba(12,34,49,.72); box-shadow: inset 0 0 0 1px var(--rim); }
.role-cycle-title { margin: 0 0 .8rem; color: var(--ink-2); font-size: .85rem; font-weight: 600; }
.role-cycle ol { position: relative; margin: 0; padding: 0; list-style: none; }
.role-cycle ol::before { content: ""; position: absolute; left: calc(.95rem - 1px); top: 1.2rem; bottom: 1.2rem; width: 2px; background: rgba(46,230,200,.3); }
.identity-abyss.role-page main .role-cycle .role-cycle-link { position: relative; display: grid; grid-template-columns: 1.9rem minmax(0, 1fr) auto; align-items: center; gap: .9rem; padding: .55rem .6rem .55rem 0; border-radius: 10px; color: var(--ink-2); text-decoration: none; }
.identity-abyss.role-page main a.role-cycle-link:hover, .identity-abyss.role-page main a.role-cycle-link:focus-visible { color: var(--ink); }
a.role-cycle-link:hover .role-cycle-step, a.role-cycle-link:focus-visible .role-cycle-step { box-shadow: inset 0 0 0 1.5px var(--glow-2); }
.role-cycle-step { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--abyss); box-shadow: inset 0 0 0 1.5px var(--rim); color: var(--ink-2); font-size: .85rem; font-weight: 600; }
.role-cycle-name { font: 620 1.05rem var(--display); font-stretch: 112%; }
.identity-abyss.role-page main .role-cycle-link .role-cycle-name { color: inherit; }
.role-cycle-role { color: var(--mute); font-size: .82rem; }
.identity-abyss.role-page main .role-cycle .is-current .role-cycle-link { color: var(--ink); }
.role-cycle .is-current .role-cycle-step { box-shadow: inset 0 0 0 1.5px var(--glow), 0 0 14px rgba(46,230,200,.55); color: var(--glow-2); }
.role-cycle .is-current .role-cycle-role { color: var(--glow-2); }
.role-cycle-return { display: flex; gap: .5rem; align-items: center; margin: .9rem 0 0; padding-top: .9rem; border-top: 1px solid var(--rim); color: var(--ink-2); font-size: .85rem; }
.role-cycle-return span { color: var(--glow-2); font-size: 1rem; }

.role-section { padding: clamp(4rem, 8vw, 6.5rem) 0; border-top: 1px solid rgba(22,56,74,.6); }
.role-section-deep { background: var(--deep); }
.role-section-head h2 { max-width: 40rem; margin: 1rem 0 0; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.08; color: var(--ink); }
.role-capabilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem 3.5rem; margin-top: 3rem; }
.role-capabilities article { padding-top: 1.2rem; border-top: 1px solid var(--rim); }
.role-capabilities h3 { margin: 0; font-size: 1.2rem; color: var(--ink); }
.role-capabilities p { max-width: 34rem; margin: .55rem 0 0; line-height: 1.6; }

.role-exchange { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 3rem; }
.role-exchange > div { padding: 1.5rem 1.6rem; border-radius: 16px; background: rgba(12,34,49,.85); box-shadow: inset 0 0 0 1px var(--rim); }
.role-exchange h3 { margin: 0; color: var(--glow-2); font-size: 1rem; }
.role-exchange ul { margin: 1rem 0 0; padding: 0; list-style: none; }
.role-exchange li { position: relative; padding: .4rem 0 .4rem 1.1rem; color: var(--ink-2); line-height: 1.55; }
.role-exchange li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 5px; height: 5px; border-radius: 50%; background: var(--glow); }
.role-limits { max-width: 52rem; margin: 2.2rem 0 0; color: var(--ink-2); font-size: .95rem; line-height: 1.6; }
.role-limits strong { margin-right: .35rem; color: var(--ink); }

.role-next { padding: clamp(3.5rem, 6vw, 5rem) 0; border-top: 1px solid rgba(22,56,74,.6); }
.role-next-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: 2.5rem 4rem; }
.role-next h2 { margin: 0; font-size: clamp(1.7rem, 2.8vw, 2.4rem); text-wrap: balance; }
.role-next-demo p { margin: .9rem 0 0; color: var(--ink-2); line-height: 1.6; }
.role-next-demo .btn { margin-top: 1.5rem; }
.role-next-label { margin: 0; color: var(--ink-2); font-size: .9rem; }
.role-next-link { margin: .35rem 0 0; font-family: var(--display); font-size: 1.35rem; font-weight: 650; }
.identity-abyss.role-page main .role-next-link a { color: var(--ink); text-decoration: none; }
.role-next-link a span { color: var(--glow-2); font-weight: 520; }
.role-next-link a:hover, .role-next-link a:focus-visible { text-decoration: underline; text-decoration-color: rgba(122,242,220,.5); text-underline-offset: .18em; }
@media (max-width: 760px) { .role-next-layout { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .role-hero-layout, .role-capabilities, .role-exchange { grid-template-columns: 1fr; }
  .role-cycle { max-width: 30rem; }
}

/* Product capture: the real interface, framed, right under the promise. */
.role-shot { padding: 0 0 clamp(4rem, 8vw, 7rem); background: var(--abyss); }
.role-shot figure { margin: 0; }
.role-shot img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--rim), 0 40px 120px -50px rgba(46,230,200,.45), 0 0 0 1px var(--rim); }
.role-shot figcaption { margin-top: 1rem; color: var(--mute); font-size: .82rem; text-align: right; }

/* Under the hood: dense technical facts, one line each. */
.role-specs { padding: clamp(3.5rem, 6vw, 5rem) 0; border-top: 1px solid rgba(22,56,74,.6); background: var(--deep); }
.role-specs dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 2rem 2.2rem; margin: 2rem 0 0; }
.role-specs dl > div { padding-top: 1rem; border-top: 1px solid var(--glow); }
.role-specs dt { color: var(--glow-2); font-size: .8rem; font-weight: 600; letter-spacing: .02em; }
.role-specs dd { margin: .5rem 0 0; color: var(--ink); font-size: .98rem; line-height: 1.5; }

/* More air between sections and items. */
.role-section { padding: clamp(5rem, 10vw, 8rem) 0; }
.role-capabilities { gap: 3rem 5rem; margin-top: 3.5rem; }
.role-capabilities p { font-size: 1rem; line-height: 1.7; }
.role-exchange { gap: 1.6rem; margin-top: 3.5rem; }
.role-limits { margin-top: 3rem; }

/* Gallery: one visual per scope, each with a title and a one-line subtitle underneath. */
.role-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(3rem, 5vw, 4.5rem) 2.5rem; }
.role-fig { margin: 0; }
.role-fig.is-lead { grid-column: 1 / -1; }
.role-fig img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 0 0 1px var(--rim), 0 40px 120px -60px rgba(46,230,200,.45); }
.role-shot .role-fig figcaption { margin-top: 1.2rem; max-width: 40rem; color: var(--ink-2); font-size: .98rem; line-height: 1.6; text-align: left; }
.role-fig figcaption strong { display: block; margin-bottom: .25rem; color: var(--ink); font: 620 1.15rem var(--display); font-stretch: 112%; }
.role-shot-note { grid-column: 1 / -1; margin: 0; color: var(--mute); font-size: .82rem; }
@media (max-width: 900px) { .role-gallery { grid-template-columns: 1fr; } }

/* Captures open full size (pinch-zoomable on phones). */
.role-fig-zoom { display: block; border-radius: 16px; }
.role-fig-zoom:focus-visible { outline: 2px solid var(--glow-2); outline-offset: 4px; }
.role-zoom-hint { display: block; margin-top: .45rem; color: var(--mute); font-size: .82rem; }
@media (max-width: 900px) {
  .role-hero { padding-top: 6.5rem; }
  .role-zoom-hint { display: block; margin-top: .45rem; color: var(--mute); font-size: .82rem; }
  .role-gallery { gap: 2.8rem; }
}
@media (max-width: 480px) {
  .role-actions .btn { width: 100%; justify-content: center; }
}

/* Galleries: one visual per row, centered, caption centered underneath. */
.role-gallery { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: clamp(3.5rem, 7vw, 5.5rem); }
.role-fig, .role-fig.is-lead { width: 100%; max-width: 1180px; grid-column: auto; }
.role-fig:not(.is-lead) { max-width: 1040px; }
.role-shot .role-fig figcaption { max-width: 44rem; margin: 1.4rem auto 0; text-align: center; }
.role-fig figcaption strong { margin-bottom: .45rem; }
.role-fig-sub { display: block; }
.role-shot-note { text-align: center; }

.role-fig-zoom { cursor: zoom-in; }
.role-fig figcaption { cursor: zoom-in; }
/* UX audit fixes (2026-09-29). */
.identity-abyss.role-page main .role-cycle .role-cycle-link { transition: background 160ms ease; }
.identity-abyss.role-page main .role-cycle a.role-cycle-link:hover { background: rgba(122,242,220,.06); }
.role-fig-zoom img { transition: transform 200ms ease, box-shadow 200ms ease; cursor: zoom-in; }
.role-fig-zoom:hover img { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(122,242,220,.45), 0 40px 120px -50px rgba(46,230,200,.55); }
.role-limits { max-width: 68ch; }
.role-all { margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.identity-abyss.role-page main .role-all a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .9rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rim); color: var(--ink-2); text-decoration: none; font-size: .9rem; }
.identity-abyss.role-page main .role-all a:hover, .identity-abyss.role-page main .role-all a[aria-current="page"] { color: var(--glow-2); box-shadow: inset 0 0 0 1px var(--glow-2); }
@media (max-width: 900px) { .role-hero { padding-top: 5.8rem; } }

/* Role tours: numbered steps beside a stage of captures that cross-fade. */
.role-tour { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.role-tour-head { max-width: 46rem; margin-bottom: 2.4rem; }
.role-tour-head h2 { margin-top: .8rem; font-size: clamp(1.9rem, 3vw, 2.8rem); line-height: 1.1; }
.tour { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 2.4rem; align-items: start; }
.tour-steps { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.tour-step { position: relative; display: grid; grid-template-columns: 2rem 1fr; column-gap: .9rem; width: 100%; padding: .9rem 1rem 1rem; overflow: hidden; border: 0; border-radius: 14px; background: transparent; box-shadow: inset 0 0 0 1px rgba(22,56,74,.8); color: var(--ink-2); font: inherit; text-align: left; cursor: pointer; transition: background 200ms ease, box-shadow 200ms ease; }
.tour-step:hover { background: rgba(12,34,49,.6); }
.tour-step:focus-visible { outline: 2px solid var(--glow-2); outline-offset: 2px; }
.tour-step[aria-pressed="true"] { background: rgba(12,34,49,.9); box-shadow: inset 0 0 0 1px rgba(122,242,220,.55), 0 0 30px -12px rgba(46,230,200,.6); }
.tour-num { grid-row: 1 / span 2; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(46,230,200,.5); color: var(--glow-2); font-weight: 600; font-size: .85rem; }
.tour-step[aria-pressed="true"] .tour-num { background: var(--glow); box-shadow: none; color: #04120f; }
.tour-step strong { color: var(--ink); font-size: 1rem; line-height: 2rem; }
.tour-step span.tour-desc { font-size: .88rem; line-height: 1.5; }
.tour-step:not([aria-pressed="true"]) span.tour-desc { display: none; }
.tour-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--glow); }
.tour-step.is-running .tour-bar { animation: tour-bar var(--tour-step-ms, 6500ms) linear forwards; }
@keyframes tour-bar { to { width: 100%; } }
.tour-pause { justify-self: start; margin-top: .6rem; padding: .35rem .8rem; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px rgba(180,203,208,.3); color: var(--ink-2); font: 500 .78rem Geist, system-ui, sans-serif; cursor: pointer; }
.tour-pause:hover, .tour-pause:focus-visible { color: var(--ink); box-shadow: inset 0 0 0 1px var(--glow); }
.tour-pause[hidden] { display: none; }
.tour-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); border-radius: 16px; overflow: hidden; background: #050f18; box-shadow: inset 0 0 0 1px var(--rim), 0 30px 80px -40px rgba(46,230,200,.45); }
.tour-frame { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity 500ms ease, visibility 0s linear 500ms; }
.tour-frame.is-active { opacity: 1; visibility: visible; transition: opacity 500ms ease; }
.tour-frame img { display: block; width: 100%; height: auto; }
/* Every capture fills the same frame so the stage never jumps; wide ones are letterboxed. */
.tour-shot { display: block; aspect-ratio: 29 / 20; overflow: hidden; cursor: zoom-in; }
.tour-shot img { height: 100%; object-fit: cover; object-position: top left; }
.tour-shot.is-wide { display: grid; place-items: center; padding: 1.2rem; background: radial-gradient(60% 70% at 50% 45%, rgba(46,230,200,.1), transparent 70%); }
.tour-shot.is-wide img { height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 0 0 1px var(--rim); }
.tour-shot:focus-visible { outline: 2px solid var(--glow-2); outline-offset: -4px; }
/* The frame is a link to the full capture: say so, since the capture is shown reduced. */
.tour-shot { position: relative; }
.tour-shot::after { content: "\2922\00a0" attr(data-zoom-label); position: absolute; right: .7rem; bottom: .7rem; padding: .3rem .65rem; border-radius: 999px; background: rgba(4,11,18,.82); box-shadow: inset 0 0 0 1px var(--rim); color: var(--ink); font: 500 .76rem Geist, system-ui, sans-serif; pointer-events: none; }
.tour-shot:hover::after, .tour-shot:focus-visible::after { box-shadow: inset 0 0 0 1px var(--glow); color: var(--glow-2); }
.tour-note { margin-top: 1rem; }
/* On phones a whole screen is unreadable: show its top-left at a legible size, the viewer opens the rest. */
@media (max-width: 600px) {
  .tour-shot { aspect-ratio: 4 / 3; }
  .tour-shot:not(.is-wide) img { width: 175%; max-width: none; height: auto; object-fit: initial; }
}
.tour-frame a { display: block; }
/* Report pages fan out when their frame becomes active. */
.tour-frame:has(.tour-pages) { display: grid; grid-template-rows: 1fr auto; }
.tour-pages { position: relative; display: block; min-height: 0; aspect-ratio: 29 / 20; background: radial-gradient(60% 70% at 50% 45%, rgba(46,230,200,.12), transparent 70%); }
.tour-pages img { position: absolute; top: 50%; left: 50%; width: 32%; height: auto; border-radius: 3px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.7); transform: translate(-50%, -50%); transition: transform 900ms cubic-bezier(.2,.8,.2,1); }
.tour-frame.is-active .tour-pages img:nth-child(1) { transform: translate(-148%, -50%) rotate(-5deg); }
.tour-frame.is-active .tour-pages img:nth-child(2) { transform: translate(-50%, -52%); z-index: 2; }
.tour-frame.is-active .tour-pages img:nth-child(3) { transform: translate(48%, -50%) rotate(5deg); }
@media (prefers-reduced-motion: reduce) {
  .tour-frame, .tour-pages img { transition: none; }
  .tour-step.is-running .tour-bar { animation: none; }
}
.tour-caption { display: none; margin: .2rem 0 0; color: var(--ink-2); font-size: .92rem; line-height: 1.5; }
@media (max-width: 900px) {
  .tour { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .tour-stage { order: -1; }
  .tour-steps { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: .4rem; }
  .tour-step { grid-template-columns: 1fr; justify-items: center; padding: .7rem .4rem .8rem; text-align: center; }
  .tour-num { grid-row: auto; }
  .tour-step strong { font-size: .78rem; line-height: 1.25; margin-top: .35rem; }
  .tour-step span.tour-desc { display: none; }
  .tour-caption { display: block; }
}
.tour-frame .tour-caption { padding: .8rem 1rem 1rem; background: var(--deep); color: var(--ink); }
.tour-side { display: grid; align-content: start; gap: .2rem; }
.tour-steps li { display: block; }
.tour-steps { counter-reset: none; }
.role-tour-head p:last-child { margin-top: 1rem; }
/* Blog links on role pages */
.role-read-grid { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
@media (min-width: 760px) { .role-read-grid { grid-template-columns: 1fr 1fr; } }
.role-read-card { display: grid; gap: .5rem; padding: .9rem; border: 1px solid rgba(42, 97, 117, .6); border-radius: 14px; background: var(--deep, #071925); text-decoration: none; transition: border-color .2s ease; }
.role-read-card:hover, .role-read-card:focus-visible { border-color: #2ee6c8; }
.role-read-card img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: 10px; }
.role-read-meta { font-size: .82rem; color: var(--mute, #7d979e); }
.role-read-title { font-size: 1.2rem; font-weight: 700; line-height: 1.25; color: var(--ink, #e9f4f5); }
.role-next-demo .role-next-pricing { margin-top: .5rem; }
