@import url('tokens.css'); /* also loaded via <link> for performance */

html {
    font-family: sans-serif;
    -webkit-text-size-adjust: 100%
}

a {
    background: none;
    text-decoration: underline;
    line-height: inherit
}

a:focus {
    outline: thin dotted
}

a:active, a:hover {
    outline: 0
}

*, ::before, ::after {
    box-sizing: border-box
}

body {
    padding: 0;
    margin: 0;
    line-height: 1;
    position: relative;
    -moz-tab-size: 4;
    tab-size: 4;
    word-wrap: anywhere;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased
}

div, ul, li, h1, h2, p {
    margin: 0;
    padding: 0
}

p {
    line-height: 1.6;
    font-size: 1.0625rem;
    margin-bottom: 1.25rem;
    text-rendering: optimizeLegibility
}

h1, h2 {
    font-family: "Open Sans", "DejaVu Sans", sans-serif;
    font-weight: 300;
    font-style: normal;
    text-rendering: optimizeLegibility;
    margin-top: 1em;
    margin-bottom: .5em;
    line-height: 1.2;
    word-spacing: -.05em;
    color: var(--text-heading)
}

h1 {
    font-size: 2.125em
}

h2 {
    font-size: 1.6875em
}

strong, b {
    font-weight: bold;
    line-height: inherit
}

ul {
    line-height: 1.6;
    margin-bottom: 1.25em;
    list-style-position: outside;
    margin-left: 1.5em
}

li p {
    margin-bottom: .625em
}

/*
Card Design:

Each card is realised as

       +--------+-------+-------+-------+--------+
       | SpaceX | ItemA | ItemB | ItemC | SpaceY |
       +--------+-------+-------+-------+--------+
       | CardContent                             |
       +-----------------------------------------+

SpaceX and SpaceY are invisible, only one Item is active.
E.g. ItemA looks like this:

                   ╭───────╮
                   | ItemA |
          ╭────────┘       └────────────────────────╮
 Symbol   │ CardContent                             │
          ╰─────────────────────────────────────────╯

*/

.title {
    line-height: 1.45;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: .25em;
    text-rendering: optimizeLegibility;
    text-align: left;
    font-size: 1.4rem;
}

#content, #footer {
    width: 100%;
    margin: 0 auto;
    max-width: 62.5em;
    position: relative;
    padding-left: .9375em;
    padding-right: .9375em
}

#content {
    margin-top: 1.25em
}

#footer {
    max-width: none;
    background: rgba(0, 0, 0, .8);
    padding: 1.25em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5em;
    font-family: "Open Sans", "DejaVu Sans", sans-serif;
    font-size: .875rem
}

#content {
    margin-bottom: .625em
}

@media screen and (min-width: 768px) {
    h1 {
        font-size: 2.75em
    }

    h2 {
        font-size: 2.3125em
    }

    #content {
        margin-bottom: 1.25em
    }

}

h1, h2, p {
    letter-spacing: -.01em
}

p strong {
    letter-spacing: -.005em
}

body {
    background-color: var(--bg);
    color: var(--text)
}

a, a:hover, a:focus {
    color: var(--link)
}

#footer {
    color: var(--text)
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
    background-color: inherit
}

::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px;
    border: 2px solid var(--scrollbar-track);
    background-color: var(--scrollbar-thumb)
}

::-webkit-scrollbar-track {
    width: 12px;
    height: 12px;
    background-color: var(--scrollbar-track)
}

.ai {
    color: var(--ai)
}

.bs {
    color: var(--brand);
    /* currently unused colors, but keep them here! */
    /*color: #4a7a82;*/
    /*color: #5a919a;*/
    /*color: #3d666d;*/
}

.cards-grid {
    column-count: 2;
    column-gap: 4em;
}

@media screen and (max-width: 640px) {
    .cards-grid {
        column-count: 1;
    }
}

.card-outer {
    break-inside: avoid;
    margin-left: 4.5rem;
    margin-bottom: 1.5em;
}

.paragraph {
    margin-top: 2em;
}

.card-outer > .tabs {
    display: flex;
    align-items: flex-end;
    padding-left: 1.5em;
    margin-bottom: -2.5px;
    position: relative;
    z-index: 1;
}

.card-outer > .tabs > .tab {
    padding: .3em .8em;
    visibility: hidden;
    white-space: nowrap;
    line-height: 1.45;
    font-size: 0.7rem;
    max-width: 2rem;
}

.card-outer > .tabs > .tab.active {
    position: relative;
    font-size: 1.15rem;
    max-width: none;
    visibility: visible;
    border: 2px solid var(--border);
    border-bottom: 2px solid var(--bg);
    border-radius: 8px 8px 0 0;
    background: var(--bg);
    box-shadow: 4px 0 8px -2px rgba(0, 0, 0, 0.2);
    clip-path: inset(-100px -100px 0 -100px);
}

.card {
    position: relative;
    padding: .75em 1em;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card > .ic {
    position: absolute;
    top: 50%;
    left: -4.5rem;
    transform: translateY(-50%);
    width: 4rem;
    text-align: center;
    font-size: 2.2rem;
}

.card > ul {
    padding: 0;
    margin-bottom: 0;
}

/* ── 3D Logo Animation ─────────────────────────────────── */

.logo-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.logo-header-text h1 {
    margin-top: 0;
    margin-bottom: .15rem;
}

.page-subtitle {
    margin: 0;
    font-size: 1.6875em;
    font-weight: 300;
    line-height: 1.2;
    color: var(--ai);
    font-family: "Open Sans", "DejaVu Sans", sans-serif;
}


.scene {
    perspective: 1200px;
    flex-shrink: 0;
    width: 8rem;
    aspect-ratio: 100 / 130;
    position: relative;
}

.wobble-wrapper,
.model-container {
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

@keyframes rotate-axes {
    /* 1: right arrowhead lower  corner(92.6,46.3,-42.6)→shoulder(68,60,-18)    pivot z=0 at (50,70,0) */
    0%      { transform-origin: 50%  53.85%;         transform: rotate3d(-0.658,  0.366,  0.658,   0deg); animation-timing-function: ease-in-out; }
    12.5%   { transform-origin: 50%  53.85%;         transform: rotate3d(-0.658,  0.366,  0.658, 360deg); }
    /* 2: right stem edge        shoulder(68,60,-18)→stem-bottom(68,116,-18)     pivot (68%,50%,-1.44rem) */
    12.5%  { transform-origin: 68%  50%  -1.44rem;  transform: rotate3d( 0,      1,      0,        0deg); animation-timing-function: ease-in-out; }
    25%     { transform-origin: 68%  50%  -1.44rem;  transform: rotate3d( 0,      1,      0,      360deg); }
    /* 3: right stem lower       stem-bottom(68,116,-18)→bottom-tip(50,126,0)   pivot: bottom tip */
    25%  { transform-origin: 50%  96.92%;         transform: rotate3d(-0.658,  0.366,  0.658,   0deg); animation-timing-function: ease-in-out; }
    37.5%   { transform-origin: 50%  96.92%;         transform: rotate3d(-0.658,  0.366,  0.658, 360deg); }
    /* 4: left stem lower        bottom-tip(50,126,0)→stem-bottom(32,116,-18)   pivot: bottom tip */
    37.5%  { transform-origin: 50%  96.92%;         transform: rotate3d( 0.658,  0.366,  0.658,   0deg); animation-timing-function: ease-in-out; }
    50%     { transform-origin: 50%  96.92%;         transform: rotate3d( 0.658,  0.366,  0.658, 360deg); }
    /* 5: left stem edge         stem-bottom(32,116,-18)→shoulder(32,60,-18)    pivot (32%,50%,-1.44rem) */
    50%  { transform-origin: 32%  50%  -1.44rem;  transform: rotate3d( 0,      1,      0,        0deg); animation-timing-function: ease-in-out; }
    62.5%   { transform-origin: 32%  50%  -1.44rem;  transform: rotate3d( 0,      1,      0,      360deg); }
    /* 6: left arrowhead lower   shoulder(32,60,-18)→corner(7.4,44.4,-42.6)     pivot z=0 at (50,71.4,0) */
    62.5%  { transform-origin: 50%  54.92%;         transform: rotate3d( 0.645,  0.409,  0.645,   0deg); animation-timing-function: ease-in-out; }
    75%     { transform-origin: 50%  54.92%;         transform: rotate3d( 0.645,  0.409,  0.645, 360deg); }
    /* 7: left upper             corner(7.4,44.4,-42.6)→tip(50,0,0)             pivot: tip */
    75%  { transform-origin: 50%  0;             transform: rotate3d(-0.569,  0.594, -0.569,   0deg); animation-timing-function: ease-in-out; }
    87.5%   { transform-origin: 50%  0;             transform: rotate3d(-0.569,  0.594, -0.569, 360deg); }
    /* 8: right upper            tip(50,0,0)→corner(92.6,46.3,-42.6)            pivot: tip */
    87.5%  { transform-origin: 50%  0;             transform: rotate3d( 0.561,  0.610, -0.561,   0deg); animation-timing-function: ease-in-out; }
    100%    { transform-origin: 50%  0;             transform: rotate3d( 0.561,  0.610, -0.561, 360deg); }
}

.is-dancing .model-container { animation: rotate-axes 48s linear infinite; }

.is-idle .model-container { transform: rotateY(0deg); }

.logo-scene-wrap {
    position: relative;
    flex-shrink: 0;
    width: 8rem;
}

#pause-anim-btn {
    display: block;
    visibility: hidden;
    position: absolute;
    bottom: -1.2rem;
    right: 0;
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    font-size: .85rem;
    cursor: pointer;
    padding: .1rem .3rem;
    line-height: 1;
    transition: color .15s;
}
#pause-anim-btn:hover { color: rgba(255,255,255,0.8); }
#pause-anim-btn::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: .7rem;
    padding: .2rem .45rem;
    border-radius: 4px;
    pointer-events: none;
    display: none;
}
#pause-anim-btn:hover::after { display: block; }

.wing {
    position: absolute;
    inset: 0;
    transform-origin: 50% 50%;
    transform-style: preserve-3d;
    backface-visibility: visible;
}

.wing-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.left-wing  { transform: rotateY(-45deg) scaleX(1.4142); }
.right-wing { transform: rotateY(45deg)  scaleX(1.4142); }

/* ── Checklist ─────────────────────────────────────────── */

.checklist {
    list-style: none;
    margin-left: 0;
    padding: 0;
}

.checklist li {
    padding: .35em 0;
    border-bottom: 1px solid var(--border);
}

.checklist li:last-child {
    border-bottom: none;
}

.checklist label {
    display: flex;
    align-items: baseline;
    gap: .6em;
    cursor: pointer;
}

.checklist input[type="checkbox"] {
    flex-shrink: 0;
    accent-color: var(--brand);
    width: 1em;
    height: 1em;
    cursor: pointer;
}

.checklist input[type="checkbox"]:checked + * {
    opacity: .5;
    text-decoration: line-through;
}
