/*
Theme Name: Justice Without Delay Child
Theme URI: https://justicewithoutdelay.com
Description: Public gateway and interactive knowledge child theme for justicewithoutdelay.com. Built as a Twenty Twenty-Five child theme for the Section 8 ADR ecosystem, routing visitors toward Lex Arbitrate for institutional action and Iustitia Sine Mora for research and publication.
Author: PKN Legal Suite
Author URI: https://pknair.com
Template: twentytwentyfive
Version: 1.2.0
Requires at least: 6.6
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: justicewithoutdelay-child
Tags: full-site-editing, block-patterns, accessibility-ready, custom-colors, custom-logo, editor-style
*/

:root {
    --jwd-navy: #112138;
    --jwd-ink: #101418;
    --jwd-ivory: #f5f0e6;
    --jwd-paper: #fffaf0;
    --jwd-stone: #ded5c5;
    --jwd-gold: #b8894b;
    --jwd-oxblood: #5c1a1b;
    --jwd-teal: #2f6f6b;
    --jwd-blue: #2f506f;
    --jwd-muted: #5b6470;
    --jwd-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --jwd-ease-soft: cubic-bezier(0.2, 0.8, 0.2, 1);
    --jwd-shadow: 0 24px 70px -44px rgba(17, 33, 56, 0.72);
    --jwd-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--jwd-ivory);
    color: var(--jwd-ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.jwd-menu-open {
    overflow: hidden;
}

a {
    text-underline-offset: 0.18em;
}

img, svg {
    max-width: 100%;
    height: auto;
}

.skip-link {
    position: absolute;
    top: -48px;
    left: 12px;
    z-index: 10000;
    background: var(--jwd-gold);
    color: var(--jwd-navy);
    padding: 10px 14px;
    border-radius: 2px;
    font: 700 13px/1 Inter, system-ui, sans-serif;
    text-decoration: none;
}

.skip-link:focus-visible {
    top: 12px;
}

.jwd-container {
    width: min(1180px, calc(100vw - 40px));
    margin: 0 auto;
}

.jwd-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(184, 137, 75, 0.26);
    background: rgba(245, 240, 230, 0.92);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.jwd-topbar__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    min-height: 76px;
}

.jwd-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--jwd-navy);
    text-decoration: none;
}

.jwd-brand__mark {
    width: 42px;
    height: 42px;
    border: 1px solid var(--jwd-gold);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--jwd-oxblood);
    background: var(--jwd-paper);
}

.jwd-brand__text {
    display: grid;
    gap: 2px;
}

.jwd-brand__name {
    font: 600 13px/1.1 Cinzel, Georgia, serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.jwd-brand__motto {
    font: 500 11px/1 Inter, system-ui, sans-serif;
    letter-spacing: 0.1em;
    color: var(--jwd-muted);
    text-transform: uppercase;
}

.jwd-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    font: 600 12px/1 Inter, system-ui, sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.jwd-nav a {
    color: var(--jwd-navy);
    text-decoration: none;
    position: relative;
    padding: 8px 0;
}

.jwd-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3px;
    height: 1px;
    background: var(--jwd-gold);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 220ms var(--jwd-ease);
}

.jwd-nav a:hover::after,
.jwd-nav a:focus-visible::after {
    transform: scaleX(1);
}

.jwd-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--jwd-oxblood);
    border-radius: 2px;
    color: var(--jwd-oxblood);
    text-decoration: none;
    font: 700 11px/1 Inter, system-ui, sans-serif;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    transition: background 180ms var(--jwd-ease), color 180ms var(--jwd-ease), transform 180ms var(--jwd-ease);
}

.jwd-action:hover,
.jwd-action:focus-visible {
    background: var(--jwd-oxblood);
    color: var(--jwd-ivory);
    transform: translateY(-1px);
}

.jwd-menu-toggle {
    display: none;
    border: 1px solid rgba(17, 33, 56, 0.24);
    background: transparent;
    color: var(--jwd-navy);
    min-height: 42px;
    padding: 0 12px;
    border-radius: 2px;
    font: 700 11px/1 Inter, system-ui, sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.jwd-mobile-panel {
    display: none;
}

.jwd-hero {
    min-height: calc(100vh - 76px);
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(17, 33, 56, 0.96), rgba(17, 33, 56, 0.88)),
        linear-gradient(120deg, rgba(184, 137, 75, 0.18), transparent 45%),
        var(--jwd-navy);
    color: var(--jwd-ivory);
}

.jwd-hero::before {
    content: "";
    position: absolute;
    inset: 8%;
    border: 1px solid rgba(184, 137, 75, 0.18);
    pointer-events: none;
}

.jwd-hero::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 12%;
    bottom: 10%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(184, 137, 75, 0.8), transparent);
    animation: jwd-spine 5.8s var(--jwd-ease-soft) infinite;
    opacity: 0.85;
}

@keyframes jwd-spine {
    0%, 100% { transform: translateY(-12px); opacity: 0.38; }
    50% { transform: translateY(12px); opacity: 0.9; }
}

.jwd-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
    gap: clamp(34px, 6vw, 82px);
    align-items: center;
    min-height: calc(100vh - 76px);
    padding: 72px 0;
}

.jwd-kicker {
    margin: 0 0 18px;
    color: var(--jwd-gold);
    font: 700 12px/1.4 Inter, system-ui, sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.jwd-hero h1 {
    max-width: 820px;
    margin: 0;
    color: var(--jwd-ivory);
    font-family: Cinzel, Georgia, serif;
    font-size: clamp(3.15rem, 8vw, 7.4rem);
    font-weight: 500;
    line-height: 0.96;
    letter-spacing: 0;
    text-transform: uppercase;
}

.jwd-hero__standfirst {
    max-width: 720px;
    margin: 28px 0 0;
    color: rgba(245, 240, 230, 0.86);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.28rem, 2vw, 1.72rem);
    line-height: 1.45;
}

.jwd-hero__buttons,
.jwd-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.jwd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid var(--jwd-gold);
    border-radius: 2px;
    text-decoration: none;
    color: var(--jwd-gold);
    background: transparent;
    cursor: pointer;
    font: 700 12px/1 Inter, system-ui, sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: transform 220ms var(--jwd-ease), background 220ms var(--jwd-ease), color 220ms var(--jwd-ease), border-color 220ms var(--jwd-ease);
}

.jwd-btn:hover,
.jwd-btn:focus-visible,
.jwd-btn.is-active {
    background: var(--jwd-gold);
    color: var(--jwd-navy);
    transform: translateY(-2px);
}

.jwd-btn--dark {
    border-color: var(--jwd-oxblood);
    color: var(--jwd-oxblood);
}

.jwd-btn--dark:hover,
.jwd-btn--dark:focus-visible {
    background: var(--jwd-oxblood);
    color: var(--jwd-ivory);
}

.jwd-btn--solid {
    background: var(--jwd-oxblood);
    border-color: var(--jwd-oxblood);
    color: var(--jwd-ivory);
}

.jwd-btn--solid:hover,
.jwd-btn--solid:focus-visible {
    background: var(--jwd-navy);
    border-color: var(--jwd-navy);
    color: var(--jwd-ivory);
}

.jwd-orbit {
    width: min(420px, 82vw);
    aspect-ratio: 1;
    border: 1px solid rgba(184, 137, 75, 0.4);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-inline: auto;
    position: relative;
}

.jwd-orbit::before,
.jwd-orbit::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(245, 240, 230, 0.18);
}

.jwd-orbit::before {
    inset: 13%;
    animation: jwd-rotate 28s linear infinite;
}

.jwd-orbit::after {
    inset: 27%;
    border-color: rgba(184, 137, 75, 0.3);
    animation: jwd-rotate 18s linear infinite reverse;
}

@keyframes jwd-rotate {
    to { transform: rotate(360deg); }
}

.jwd-orbit__core {
    width: 46%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(245, 240, 230, 0.95);
    color: var(--jwd-navy);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 22px;
    box-shadow: 0 0 0 1px rgba(184, 137, 75, 0.7), var(--jwd-shadow);
    font-family: Cinzel, Georgia, serif;
    font-size: clamp(1rem, 2.2vw, 1.32rem);
    line-height: 1.2;
    text-transform: uppercase;
}

.jwd-orbit__node {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--jwd-gold);
    box-shadow: 0 0 0 8px rgba(184, 137, 75, 0.15);
}

.jwd-orbit__node:nth-child(2) { top: 8%; left: 50%; }
.jwd-orbit__node:nth-child(3) { right: 8%; top: 52%; background: var(--jwd-teal); box-shadow: 0 0 0 8px rgba(47, 111, 107, 0.16); }
.jwd-orbit__node:nth-child(4) { left: 10%; bottom: 18%; background: var(--jwd-oxblood); box-shadow: 0 0 0 8px rgba(92, 26, 27, 0.16); }

.jwd-band {
    padding: clamp(70px, 9vw, 126px) 0;
    position: relative;
}

.jwd-band--paper {
    background: var(--jwd-paper);
}

.jwd-band--ivory {
    background: var(--jwd-ivory);
}

.jwd-band--navy {
    background: var(--jwd-navy);
    color: var(--jwd-ivory);
}

.jwd-section-head {
    max-width: 840px;
    margin: 0 auto 38px;
    text-align: center;
}

.jwd-section-head h2 {
    margin: 0;
    color: inherit;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.1rem, 4vw, 4.2rem);
    font-weight: 500;
    line-height: 1.05;
}

.jwd-section-head p {
    margin: 18px auto 0;
    max-width: 720px;
    color: var(--jwd-muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.jwd-band--navy .jwd-section-head p {
    color: rgba(245, 240, 230, 0.74);
}

.jwd-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.jwd-card {
    background: rgba(255, 250, 240, 0.86);
    border: 1px solid rgba(17, 33, 56, 0.14);
    border-top: 3px solid var(--jwd-gold);
    border-radius: var(--jwd-radius);
    padding: clamp(22px, 3vw, 34px);
    box-shadow: 0 14px 48px -42px rgba(17, 33, 56, 0.6);
}

.jwd-band--navy .jwd-card {
    background: rgba(245, 240, 230, 0.06);
    border-color: rgba(184, 137, 75, 0.28);
    color: var(--jwd-ivory);
}

.jwd-card h3 {
    margin: 0 0 12px;
    color: var(--jwd-navy);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.65rem;
    line-height: 1.15;
}

.jwd-band--navy .jwd-card h3 {
    color: var(--jwd-ivory);
}

.jwd-card p {
    margin: 0;
    color: var(--jwd-muted);
    line-height: 1.68;
}

.jwd-band--navy .jwd-card p {
    color: rgba(245, 240, 230, 0.75);
}

.jwd-card__label {
    display: block;
    margin-bottom: 16px;
    color: var(--jwd-oxblood);
    font: 700 11px/1 Inter, system-ui, sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.jwd-band--navy .jwd-card__label {
    color: var(--jwd-gold);
}

.jwd-clock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: center;
}

.jwd-clock__face {
    aspect-ratio: 1;
    border: 1px solid rgba(17, 33, 56, 0.18);
    border-radius: 50%;
    background:
        conic-gradient(from 0deg, rgba(184, 137, 75, 0.4), rgba(47, 111, 107, 0.22), rgba(92, 26, 27, 0.28), rgba(184, 137, 75, 0.4));
    padding: 18px;
    box-shadow: var(--jwd-shadow);
}

.jwd-clock__inner {
    height: 100%;
    border-radius: 50%;
    background: var(--jwd-paper);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 36px;
}

.jwd-clock__number {
    color: var(--jwd-oxblood);
    font: 500 clamp(4rem, 9vw, 8rem)/0.9 Cinzel, Georgia, serif;
}

.jwd-clock__text {
    color: var(--jwd-navy);
    font: 700 12px/1.4 Inter, system-ui, sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.jwd-route {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    gap: 24px;
    align-items: stretch;
}

.jwd-persona {
    display: grid;
    grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
    gap: 24px;
}

.jwd-persona__dial {
    display: grid;
    gap: 10px;
    align-content: start;
}

.jwd-persona__dial button {
    min-height: 56px;
    border: 1px solid rgba(184, 137, 75, 0.34);
    border-radius: 4px;
    background: rgba(245, 240, 230, 0.06);
    color: var(--jwd-ivory);
    cursor: pointer;
    padding: 14px 16px;
    text-align: left;
    font: 700 12px/1.25 Inter, system-ui, sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: background 220ms var(--jwd-ease), color 220ms var(--jwd-ease), transform 220ms var(--jwd-ease);
}

.jwd-persona__dial button:hover,
.jwd-persona__dial button:focus-visible,
.jwd-persona__dial button.is-active {
    background: var(--jwd-gold);
    color: var(--jwd-navy);
    transform: translateX(4px);
}

.jwd-persona__stage {
    min-height: 420px;
    border: 1px solid rgba(184, 137, 75, 0.34);
    border-radius: var(--jwd-radius);
    background:
        linear-gradient(135deg, rgba(184, 137, 75, 0.12), transparent 42%),
        rgba(245, 240, 230, 0.07);
    overflow: hidden;
    position: relative;
}

.jwd-persona__stage::before {
    content: "";
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(245, 240, 230, 0.08);
    pointer-events: none;
}

.jwd-persona__panel {
    display: none;
    padding: clamp(30px, 6vw, 70px);
    position: relative;
    z-index: 1;
}

.jwd-persona__panel.is-active {
    display: block;
    animation: jwd-persona-enter 440ms var(--jwd-ease) both;
}

@keyframes jwd-persona-enter {
    from { opacity: 0; transform: translateY(14px) scale(0.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.jwd-persona__panel h3 {
    max-width: 760px;
    margin: 0 0 16px;
    color: var(--jwd-ivory);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.25rem, 5vw, 4.6rem);
    line-height: 1.02;
}

.jwd-persona__panel p {
    max-width: 720px;
    margin: 0 0 26px;
    color: rgba(245, 240, 230, 0.76);
    font-size: 1.1rem;
    line-height: 1.72;
}

.jwd-simulator {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
    gap: 28px;
    align-items: stretch;
}

.jwd-simulator__controls,
.jwd-simulator__result {
    border: 1px solid rgba(17, 33, 56, 0.14);
    border-radius: var(--jwd-radius);
    background: var(--jwd-paper);
    padding: clamp(22px, 4vw, 38px);
    box-shadow: 0 20px 60px -48px rgba(17, 33, 56, 0.74);
}

.jwd-simulator__controls {
    display: grid;
    gap: 22px;
}

.jwd-range {
    display: grid;
    gap: 10px;
}

.jwd-range span {
    color: var(--jwd-muted);
    font: 700 12px/1 Inter, system-ui, sans-serif;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.jwd-range strong {
    color: var(--jwd-navy);
    font: 500 2rem/1 Cinzel, Georgia, serif;
}

.jwd-range input[type="range"] {
    width: 100%;
    accent-color: var(--jwd-oxblood);
}

.jwd-simulator__result {
    display: grid;
    grid-template-columns: minmax(180px, 0.52fr) minmax(0, 1fr);
    gap: clamp(18px, 4vw, 34px);
    align-items: center;
}

.jwd-pressure {
    position: relative;
    width: min(230px, 100%);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    margin-inline: auto;
}

.jwd-pressure svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.jwd-pressure__track,
.jwd-pressure__bar {
    fill: none;
    stroke-width: 10;
}

.jwd-pressure__track {
    stroke: rgba(17, 33, 56, 0.1);
}

.jwd-pressure__bar {
    stroke: var(--jwd-oxblood);
    stroke-linecap: round;
    stroke-dasharray: 465;
    stroke-dashoffset: 248;
    transition: stroke-dashoffset 520ms var(--jwd-ease), stroke 520ms var(--jwd-ease);
}

.jwd-pressure__value {
    position: absolute;
    inset: 20%;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    border-radius: 50%;
    background: var(--jwd-ivory);
    box-shadow: inset 0 0 0 1px rgba(184, 137, 75, 0.22);
}

.jwd-pressure__value span {
    color: var(--jwd-navy);
    font: 500 clamp(2.6rem, 6vw, 4.8rem)/0.9 Cinzel, Georgia, serif;
}

.jwd-pressure__value em {
    color: var(--jwd-muted);
    font: 700 10px/1.3 Inter, system-ui, sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-style: normal;
}

.jwd-pressure__copy h3 {
    margin: 0 0 12px;
    color: var(--jwd-navy);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    line-height: 1.08;
}

.jwd-pressure__copy p {
    margin: 0;
    color: var(--jwd-muted);
    line-height: 1.72;
}

.jwd-timeline {
    display: grid;
    gap: 20px;
}

.jwd-timeline__rail {
    border: 1px solid rgba(17, 33, 56, 0.14);
    border-radius: var(--jwd-radius);
    background: var(--jwd-paper);
    padding: clamp(22px, 4vw, 34px);
    overflow: hidden;
}

.jwd-timeline__header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--jwd-navy);
    font: 700 12px/1 Inter, system-ui, sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.jwd-timeline__header strong {
    color: var(--jwd-oxblood);
}

.jwd-timeline__bar {
    display: flex;
    min-height: 54px;
    margin: 18px 0 16px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(17, 33, 56, 0.08);
}

.jwd-timeline__bar span {
    width: var(--w);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    color: var(--jwd-ivory);
    font: 700 11px/1 Inter, system-ui, sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transform-origin: left center;
    animation: jwd-bar-grow 900ms var(--jwd-ease) both;
}

.jwd-timeline__bar span:nth-child(1) { animation-delay: 120ms; }
.jwd-timeline__bar span:nth-child(2) { animation-delay: 240ms; }
.jwd-timeline__bar span:nth-child(3) { animation-delay: 360ms; }
.jwd-timeline__bar span:nth-child(4) { animation-delay: 480ms; }

@keyframes jwd-bar-grow {
    from { transform: scaleX(0); opacity: 0; }
    to { transform: scaleX(1); opacity: 1; }
}

.jwd-timeline__bar--drift span:nth-child(1) { background: #6b5a50; }
.jwd-timeline__bar--drift span:nth-child(2) { background: #7b4b3d; }
.jwd-timeline__bar--drift span:nth-child(3) { background: var(--jwd-oxblood); }
.jwd-timeline__bar--structured span:nth-child(1) { background: var(--jwd-blue); }
.jwd-timeline__bar--structured span:nth-child(2) { background: var(--jwd-teal); }
.jwd-timeline__bar--structured span:nth-child(3) { background: var(--jwd-gold); color: var(--jwd-navy); }
.jwd-timeline__bar--structured span:nth-child(4) { background: var(--jwd-navy); }

.jwd-timeline__rail p {
    margin: 0;
    color: var(--jwd-muted);
    line-height: 1.72;
}

.jwd-route__buttons {
    display: grid;
    gap: 10px;
    align-content: start;
}

.jwd-route__button {
    width: 100%;
    min-height: 58px;
    text-align: left;
    border: 1px solid rgba(184, 137, 75, 0.34);
    border-radius: 4px;
    background: rgba(245, 240, 230, 0.06);
    color: var(--jwd-ivory);
    padding: 14px 16px;
    cursor: pointer;
    font: 700 12px/1.25 Inter, system-ui, sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.jwd-route__button.is-active,
.jwd-route__button:hover,
.jwd-route__button:focus-visible {
    background: var(--jwd-gold);
    color: var(--jwd-navy);
}

.jwd-route__panel {
    display: none;
    min-height: 310px;
    border: 1px solid rgba(184, 137, 75, 0.34);
    border-radius: var(--jwd-radius);
    padding: clamp(28px, 5vw, 54px);
    background: rgba(245, 240, 230, 0.08);
}

.jwd-route__panel.is-active {
    display: block;
    animation: jwd-panel-rise 420ms var(--jwd-ease) both;
}

@keyframes jwd-panel-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.jwd-route__panel h3 {
    margin: 0 0 12px;
    color: var(--jwd-ivory);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
}

.jwd-route__panel p {
    margin: 0 0 22px;
    max-width: 680px;
    color: rgba(245, 240, 230, 0.75);
    font-size: 1.08rem;
    line-height: 1.7;
}

.jwd-door-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.jwd-door {
    min-height: 360px;
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid rgba(17, 33, 56, 0.16);
    border-radius: var(--jwd-radius);
    background: var(--jwd-paper);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: var(--jwd-ink);
    position: relative;
    overflow: hidden;
}

.jwd-door::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--jwd-oxblood), var(--jwd-gold), var(--jwd-teal));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 320ms var(--jwd-ease);
}

.jwd-door:hover::after,
.jwd-door:focus-visible::after {
    transform: scaleX(1);
}

.jwd-door h3 {
    margin: 0;
    font-family: Cinzel, Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.45rem);
    line-height: 1.15;
    text-transform: uppercase;
}

.jwd-door p {
    margin: 18px 0 0;
    color: var(--jwd-muted);
    line-height: 1.7;
}

.jwd-door span {
    margin-top: 28px;
    color: var(--jwd-oxblood);
    font: 700 12px/1 Inter, system-ui, sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.jwd-faq {
    display: grid;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.jwd-faq details {
    border: 1px solid rgba(17, 33, 56, 0.14);
    border-radius: 6px;
    background: var(--jwd-paper);
    padding: 18px 20px;
}

.jwd-faq summary {
    cursor: pointer;
    color: var(--jwd-navy);
    font: 700 14px/1.5 Inter, system-ui, sans-serif;
    letter-spacing: 0.05em;
}

.jwd-faq p {
    margin: 12px 0 0;
    color: var(--jwd-muted);
    line-height: 1.72;
}

.jwd-footer {
    background: var(--jwd-navy);
    color: rgba(245, 240, 230, 0.76);
    padding: 58px 0 36px;
}

.jwd-footer__grid {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr;
    gap: 36px;
}

.jwd-footer__brand {
    color: var(--jwd-ivory);
    font-family: Cinzel, Georgia, serif;
    font-size: 1.2rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.jwd-footer__motto {
    margin-top: 10px;
    color: var(--jwd-gold);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-size: 1.28rem;
}

.jwd-footer__links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.jwd-footer__links h3 {
    margin: 0 0 12px;
    color: var(--jwd-ivory);
    font: 700 12px/1 Inter, system-ui, sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.jwd-footer__links a {
    display: block;
    color: rgba(245, 240, 230, 0.72);
    text-decoration: none;
    padding: 5px 0;
    font-size: 0.95rem;
}

.jwd-footer__links a:hover,
.jwd-footer__links a:focus-visible {
    color: var(--jwd-gold);
}

.jwd-footer__notice {
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid rgba(184, 137, 75, 0.28);
    color: rgba(245, 240, 230, 0.58);
    font: 500 12px/1.7 Inter, system-ui, sans-serif;
}

.jwd-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 720ms var(--jwd-ease), transform 720ms var(--jwd-ease);
}

.jwd-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .jwd-topbar__inner {
        grid-template-columns: 1fr auto;
    }

    .jwd-nav,
    .jwd-topbar .jwd-action {
        display: none;
    }

    .jwd-menu-toggle {
        display: inline-flex;
        align-items: center;
    }

    .jwd-mobile-panel {
        display: none;
        position: fixed;
        inset: 76px 0 auto 0;
        z-index: 999;
        background: var(--jwd-paper);
        border-bottom: 1px solid rgba(184, 137, 75, 0.28);
        padding: 18px 20px 24px;
    }

    body.jwd-menu-open .jwd-mobile-panel {
        display: grid;
        gap: 10px;
    }

    .jwd-mobile-panel a {
        min-height: 44px;
        display: flex;
        align-items: center;
        color: var(--jwd-navy);
        text-decoration: none;
        border-bottom: 1px solid rgba(17, 33, 56, 0.1);
        font: 700 12px/1 Inter, system-ui, sans-serif;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .jwd-hero__inner,
    .jwd-clock,
    .jwd-simulator,
    .jwd-simulator__result,
    .jwd-persona,
    .jwd-route,
    .jwd-footer__grid {
        grid-template-columns: 1fr;
    }

    .jwd-hero::after {
        left: auto;
        right: 24px;
    }

    .jwd-grid,
    .jwd-door-grid,
    .jwd-footer__links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .jwd-container {
        width: min(100% - 28px, 1180px);
    }

    .jwd-topbar__inner {
        min-height: 66px;
    }

    .jwd-brand__name {
        font-size: 11px;
        letter-spacing: 0.1em;
    }

    .jwd-brand__motto {
        display: none;
    }

    .jwd-mobile-panel {
        top: 66px;
    }

    .jwd-hero__inner {
        min-height: auto;
        padding: 54px 0 64px;
    }

    .jwd-orbit {
        width: min(320px, 88vw);
    }

    .jwd-band {
        padding: 56px 0;
    }
}
