/*
 * Datanauten 2: details on top of the Colibri layouts.
 * Colibri's own rules start with #colibri (the body id), so ours do too. Classes starting with d2- are added by d2.js.
 */

:root {
    --d2-teal: #0d6571;
    --d2-teal-d: #094c55;
    --d2-night: #062a30;
    --d2-coral: #f75575;
    --d2-plum: #954673;
    --d2-sand: #f7d7ac;
    --d2-sky: #a6dcf4;
    --d2-ink: #10343a;
    --d2-ease: cubic-bezier(.2, .7, .2, 1);
    --d2-spring: cubic-bezier(.3, 1.6, .5, 1);
}

/* --- Basics ------------------------------------------------------------------------------------------------------ */

#colibri {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-color: rgba(13, 101, 113, .45) transparent;
}

#colibri ::selection {
    background: var(--d2-coral);
    color: #fff;
}

#colibri :focus-visible {
    outline: 2px solid var(--d2-coral);
    outline-offset: 3px;
    border-radius: 4px;
}

#colibri h1,
#colibri h2 {
    letter-spacing: -.012em;
    text-wrap: balance;
}

#colibri h3,
#colibri h4 {
    text-wrap: balance;
}

#colibri p {
    text-wrap: pretty;
}

/* Small uppercase headings get a coral dash in front, which draws itself in when the heading scrolls into view. */
#colibri .d2-eyebrow::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 2px;
    margin-right: 12px;
    vertical-align: .32em;
    border-radius: 2px;
    background: var(--d2-coral);
    transform-origin: 0 50%;
    transition: transform .9s var(--d2-ease) .15s;
}

.d2-motion #colibri .d2-eyebrow:not(.d2-seen)::before {
    transform: scaleX(0);
}

/* --- Navigation: frosted glass once it sticks, with the reading progress as a thin trail ---------------------------- */

#colibri #navigation.h-navigation_sticky {
    background: rgba(255, 255, 255, .82) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.6);
    backdrop-filter: blur(16px) saturate(1.6);
    box-shadow: 0 1px 0 rgba(13, 101, 113, .08), 0 14px 34px -22px rgba(6, 42, 48, .55) !important;
}

#colibri #navigation.h-navigation_sticky::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--d2-coral), var(--d2-sand) 55%, var(--d2-sky));
    transform-origin: 0 50%;
    transform: scaleX(var(--d2-progress, 0));
    pointer-events: none;
}

#colibri .h-menu ul > li::before,
#colibri .h-menu ul > li::after {
    border-radius: 3px;
}

/* --- Buttons ---------------------------------------------------------------------------------------------------- */

#colibri a.h-button,
#colibri .wpcf7-submit,
#colibri .forminator-button-submit {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform .3s var(--d2-ease), box-shadow .3s var(--d2-ease), background-color .3s, color .3s !important;
}

#colibri a.h-button::after,
#colibri .forminator-button-submit::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .38) 50%, transparent 65%);
    transform: translateX(-110%);
    transition: transform .8s var(--d2-ease);
    pointer-events: none;
}

#colibri a.h-button:hover,
#colibri .wpcf7-submit:hover,
#colibri .forminator-button-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -12px rgba(247, 85, 117, .85);
}

#colibri a.h-button:hover::after,
#colibri .forminator-button-submit:hover::after {
    transform: translateX(110%);
}

#colibri a.h-button:active,
#colibri .wpcf7-submit:active,
#colibri .forminator-button-submit:active {
    transform: translateY(0) scale(.98);
}

/* --- Forms ------------------------------------------------------------------------------------------------------ */

#colibri .wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
#colibri .wpcf7 textarea,
#colibri .wpcf7 select,
#colibri .forminator-ui .forminator-input,
#colibri .forminator-ui .forminator-textarea {
    border-radius: 12px !important;
    border: 1px solid rgba(13, 101, 113, .16) !important;
    transition: border-color .25s, box-shadow .25s !important;
}

#colibri .wpcf7 input:not([type="submit"]):focus,
#colibri .wpcf7 textarea:focus,
#colibri .wpcf7 select:focus,
#colibri .forminator-ui .forminator-input:focus,
#colibri .forminator-ui .forminator-textarea:focus {
    outline: none;
    border-color: var(--d2-sky) !important;
    box-shadow: 0 0 0 4px rgba(166, 220, 244, .45) !important;
}

#colibri .wpcf7-submit,
#colibri .forminator-ui .forminator-button-submit {
    border: 0 !important;
    border-radius: 999px !important;
    padding: 14px 36px !important;
    background: var(--d2-coral) !important;
    color: #fff !important;
    font: 600 14px/1 "Open Sans", sans-serif !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
}

/* A coloured box around a form (Get a Server): rounded, with the stripes of the teal sections */
#colibri .d2-panel {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 60px -30px rgba(6, 42, 48, .55);
}

/* --- Teal and plum sections: faint stripes and a soft light that follows the pointer ---------------------------- */

#colibri .d2-tinted {
    isolation: isolate;
}

#colibri .d2-tinted::before,
#colibri .d2-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: repeating-linear-gradient(-10deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 46px);
}

#colibri .d2-tinted::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(520px circle at var(--d2-mx, 50%) var(--d2-my, 50%), rgba(255, 255, 255, .075), transparent 70%);
    opacity: 0;
    transition: opacity .6s;
}

#colibri .d2-tinted:hover::after {
    opacity: 1;
}

#colibri .d2-tinted > .h-section-grid-container,
#colibri .d2-panel > * {
    position: relative;
    z-index: 1;
}

/* Feature icons: a dashed orbit with a small satellite appears when you point at the feature */
#colibri .d2-icon .h-image__frame-container {
    position: relative;
}

#colibri .d2-icon .h-image__frame-container::after {
    content: "";
    display: block;
    position: absolute;
    top: -14px;
    left: -14px;
    width: calc(100% + 28px);
    height: calc(100% + 28px);
    box-sizing: border-box;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, .4);
    background: radial-gradient(circle at 50% 0, var(--d2-coral) 0 3.5px, transparent 4px);
    opacity: 0;
    transform: scale(.7);
    transition: opacity .45s, transform .6s var(--d2-spring);
    pointer-events: none;
}

#colibri .d2-icon img {
    transition: transform .6s var(--d2-spring);
}

#colibri .d2-feature:hover .d2-icon .h-image__frame-container::after {
    opacity: 1;
    transform: scale(1);
    animation: d2-orbit 7s linear infinite;
}

#colibri .d2-feature:hover .d2-icon img {
    transform: translateY(-3px) scale(1.04);
}

@keyframes d2-orbit {
    to { rotate: 360deg; }
}

/* --- Photos: rounded, a gentle zoom, and a dot grid peeking out on the outer side ---------------------------------- */

#colibri .d2-photo {
    position: relative;
}

#colibri .d2-photo::before {
    content: "";
    position: absolute;
    z-index: 0;
    width: 132px;
    height: 132px;
    bottom: -24px;
    left: -24px;
    background: radial-gradient(var(--d2-coral) 1.6px, transparent 2px) 0 0 / 14px 14px;
    opacity: .4;
    pointer-events: none;
}

#colibri .d2-photo.d2-right::before {
    left: auto;
    right: -24px;
}

#colibri .d2-photo-col {
    position: relative;
}

#colibri .d2-photo-col::before {
    content: "";
    position: absolute;
    z-index: 0;
    width: 132px;
    height: 132px;
    bottom: -30px;
    left: -30px;
    background: radial-gradient(var(--d2-coral) 1.6px, transparent 2px) 0 0 / 14px 14px;
    opacity: .4;
    pointer-events: none;
}

#colibri .d2-photo-col.d2-right::before {
    left: auto;
    right: -30px;
}

#colibri .d2-photo-col > .h-column__inner {
    position: relative;
    z-index: 1;
    border-radius: 18px;
    transition: transform .6s var(--d2-ease), box-shadow .6s var(--d2-ease) !important;
}

#colibri .d2-photo-col:hover > .h-column__inner {
    transform: translateY(-4px);
    box-shadow: 0 34px 60px -30px rgba(6, 42, 48, .55) !important;
}

#colibri .d2-photo .h-image__frame-container {
    position: relative;
    z-index: 1;
    border-radius: 18px;
    overflow: hidden;
}

#colibri .d2-photo img {
    border-radius: 18px;
    transition: transform 1.2s var(--d2-ease);
}

#colibri .d2-photo:hover img {
    transform: scale(1.025);
}

/* --- Lists with check icons ------------------------------------------------------------------------------------- */

#colibri .ul-list-icon .h-svg-icon svg {
    transition: transform .45s var(--d2-spring);
}

#colibri .ul-list-icon .list-item:hover .h-svg-icon svg {
    transform: scale(1.18) rotate(-10deg);
}

/* --- Things that rise into view as you scroll (only with JavaScript and without reduced motion) --------------------- */

.d2-motion #colibri .d2-rise {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .9s var(--d2-ease), transform .9s var(--d2-ease);
    transition-delay: calc(var(--d2-i, 0) * 70ms);
}

.d2-motion #colibri .d2-rise.d2-seen {
    opacity: 1;
    transform: none;
}

/* --- Heroes: a quiet star field, and on the home page a hint to scroll ------------------------------------------- */

#colibri .d2-stars {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#colibri .h-hero > .h-section-grid-container {
    position: relative;
    z-index: 1;
}

#colibri .d2-cue {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 26px;
    width: 30px;
    height: 46px;
    margin-left: -15px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, .7);
    border-radius: 16px;
    background: transparent;
    cursor: pointer;
    transition: border-color .3s, transform .3s var(--d2-ease);
}

#colibri .d2-cue::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: #fff;
    animation: d2-cue 2.4s var(--d2-ease) infinite;
}

#colibri .d2-cue:hover {
    border-color: #fff;
    transform: translateY(2px);
}

@keyframes d2-cue {
    0% { opacity: 0; transform: translateY(0); }
    25% { opacity: 1; }
    70% { opacity: 0; transform: translateY(14px); }
    100% { opacity: 0; }
}

/* --- Blog cards and posts ---------------------------------------------------------------------------------------- */

#colibri .d2-card {
    transition: transform .45s var(--d2-ease), box-shadow .45s var(--d2-ease) !important;
}

#colibri .d2-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 50px -28px rgba(6, 42, 48, .45) !important;
}

#colibri .d2-card .colibri-post-thumbnail img {
    transition: transform 1.2s var(--d2-ease);
}

#colibri .d2-card:hover .colibri-post-thumbnail img {
    transform: scale(1.04);
}

#colibri.single-post .wp-block-heading {
    font-size: clamp(26px, 2.3vw, 32px);
    font-weight: 600;
    margin-top: 1.7em;
}

#colibri.single-post .wp-block-video video {
    border-radius: 16px;
    box-shadow: 0 30px 60px -32px rgba(6, 42, 48, .6);
}

#colibri.single-post .wp-block-video figcaption {
    margin-top: 12px;
    font-size: 14px;
    color: #5d7479;
}

#colibri.single-post .wp-block-list a,
#colibri.single-post .wp-block-paragraph a,
#colibri.single-post p a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(247, 85, 117, .5);
    transition: color .2s, text-decoration-color .2s;
}

#colibri.single-post p a:hover,
#colibri.single-post .wp-block-list a:hover {
    color: var(--d2-coral);
    text-decoration-color: var(--d2-coral);
}

/* --- Footer: night sky instead of plain black --------------------------------------------------------------------- */

#colibri #copyright {
    background:
        radial-gradient(ellipse 70% 60% at 15% 0%, rgba(13, 101, 113, .55), transparent 70%),
        radial-gradient(ellipse 50% 50% at 95% 100%, rgba(149, 70, 115, .28), transparent 70%),
        linear-gradient(180deg, var(--d2-night), #031a1e) !important;
    isolation: isolate;
}

#colibri #copyright > .h-section-grid-container {
    position: relative;
    z-index: 1;
}

#colibri .d2-float {
    animation: d2-float 6s ease-in-out infinite;
}

@keyframes d2-float {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    50% { transform: translate(3px, -7px) rotate(-1.5deg); }
}

#colibri #copyright a {
    transition: color .2s, opacity .2s;
}

#colibri #copyright .h-x-container a,
#colibri #copyright p a {
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size .35s var(--d2-ease), color .2s;
}

#colibri #copyright .h-x-container a:hover,
#colibri #copyright p a:hover {
    background-size: 100% 1px;
}

#colibri #copyright .h-social-icon,
#colibri #copyright .social-icon,
#colibri #copyright [class*="social"] a {
    transition: transform .35s var(--d2-spring), color .2s, opacity .2s;
}

#colibri #copyright [class*="social"] a:hover {
    transform: translateY(-3px);
}

/* The Matrix address in the footer copies itself on click */
#colibri .d2-copy {
    all: unset;
    cursor: copy;
    border-bottom: 1px dashed rgba(255, 255, 255, .35);
    transition: border-color .2s, color .2s;
}

#colibri .d2-copy:hover {
    color: #fff;
    border-bottom-color: var(--d2-coral);
}

/* --- Back to top: a rocket that lifts off ------------------------------------------------------------------------ */

.d2-top {
    position: fixed;
    z-index: 9990;
    right: 22px;
    bottom: 22px;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--d2-teal);
    color: #fff;
    box-shadow: 0 14px 30px -12px rgba(6, 42, 48, .7), inset 0 0 0 1px rgba(255, 255, 255, .12);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px) scale(.8);
    pointer-events: none;
    transition: opacity .4s, transform .5s var(--d2-spring), background-color .3s;
}

.d2-top.d2-on {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.d2-top:hover {
    background: var(--d2-teal-d);
}

.d2-top:focus-visible {
    outline: 2px solid var(--d2-coral);
    outline-offset: 3px;
}

.d2-top svg {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 24px;
    margin: -13px 0 0 -12px;
    transition: transform .4s var(--d2-ease);
}

.d2-top .d2-flame {
    position: absolute;
    left: 50%;
    top: 34px;
    width: 6px;
    height: 9px;
    margin-left: -3px;
    border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
    background: linear-gradient(var(--d2-sand), var(--d2-coral));
    opacity: 0;
    transform-origin: 50% 0;
    transition: opacity .2s;
}

.d2-top:hover svg {
    transform: translateY(-3px);
}

.d2-top:hover .d2-flame {
    opacity: 1;
    animation: d2-flame .18s ease-in-out infinite alternate;
}

.d2-top.d2-launch svg,
.d2-top.d2-launch .d2-flame {
    animation: d2-launch .7s cubic-bezier(.5, 0, .75, 0) forwards;
    opacity: 1;
}

@keyframes d2-flame {
    from { transform: scaleY(.8) translateY(-1px); }
    to { transform: scaleY(1.25); }
}

@keyframes d2-launch {
    to { transform: translateY(-140px); opacity: 0; }
}

/* A short message near the bottom, e.g. "Copied" */
.d2-toast {
    position: fixed;
    z-index: 9991;
    left: 50%;
    bottom: 28px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--d2-ink);
    color: #fff;
    font: 600 14px/1.2 "Open Sans", sans-serif;
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
    transform: translate(-50%, 16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, transform .4s var(--d2-spring);
}

.d2-toast.d2-on {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* --- Consistency fixes for the existing layouts ----------------------------------------------------------------- */

/* Contact Form 7 markup carries stray <br>s after fields, which open uneven gaps; the fields space themselves instead */
#colibri .wpcf7-form .wpcf7-form-control-wrap + br,
#colibri .wpcf7-form label + br {
    display: none;
}

#colibri .wpcf7-form label + label {
    margin-top: 30px;
}

/* Bare text labels ("Contact me via") take the same colour as real labels */
#colibri .d2-panel .wpcf7-form p {
    color: #fff;
}

/* Newsletter: e-mail field and button side by side, centred on one line */
#colibri .wpcf7-form p:has(> label input[type="email"]):has(> .wpcf7-submit) {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

#colibri .wpcf7-form p:has(> label input[type="email"]):has(> .wpcf7-submit) > label {
    display: flex;
    flex: 1 1 260px;
    margin: 0;
}

#colibri .wpcf7-form p:has(> label input[type="email"]):has(> .wpcf7-submit) > label > .wpcf7-form-control-wrap {
    flex: 1;
}

#colibri .wpcf7-form p:has(> label input[type="email"]):has(> .wpcf7-submit) input[type="email"] {
    width: 100%;
    height: 42px;
    margin: 0 !important;
}

#colibri .wpcf7-form p:has(> label input[type="email"]):has(> .wpcf7-submit) > .wpcf7-spinner {
    position: absolute;
    right: -48px;
}

/* Terms of Service: the accordions sit in nested columns with uneven padding; one even step between all of them */
#colibri.page-id-571 .h-accordion {
    margin: 0 0 20px !important;
}

#colibri.page-id-571 .h-row-container.gutters-row-lg-0 > .h-row > .h-column {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#colibri .h-accordion-item-content {
    box-sizing: border-box;
    max-width: 100%;
}

@media (max-width: 767px) {
    /* One gutter on phones: text never runs to the screen edge */
    #colibri .h-section-boxed-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Page titles at 48 to 54px split long words on a phone */
    #colibri .h-hero h1 {
        font-size: clamp(30px, 9vw, 40px) !important;
        line-height: 1.2 !important;
    }

    /* Section headings stay below the page title in size */
    #colibri .h-heading h2 {
        font-size: clamp(28px, 8.5vw, 34px) !important;
        line-height: 1.2 !important;
    }

    /* White hero text over a bright photo needs a little shade on a narrow screen */
    #colibri .h-hero h1,
    #colibri .h-hero h3,
    #colibri .h-hero p {
        text-shadow: 0 1px 18px rgba(6, 42, 48, .6);
    }

    /* Terms of Service: the opened text kept its desktop indent and ran off the screen */
    #colibri .h-accordion-item-content {
        width: auto !important;
        margin-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Footer: the columns kept a 140px desktop offset, which cut the address off; stack them centred */
    #colibri #copyright .h-row-container {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #colibri #copyright .h-row > .h-column {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    #colibri #copyright .h-column,
    #colibri #copyright .h-column * {
        text-align: center !important;
        justify-content: center !important;
    }
}

@media (max-width: 767px) {
    .d2-top {
        right: 14px;
        bottom: 14px;
        width: 44px;
        height: 44px;
    }

    .d2-top .d2-flame {
        top: 30px;
    }

    #colibri .d2-photo-col::before,
    #colibri .d2-photo::before {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    #colibri *,
    .d2-top,
    .d2-top *,
    .d2-toast {
        animation: none !important;
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }
}
