
* {             /* Selecting EVERYTHING, in order to 'reset' the box sizing property, so that assigning sizes affects the block, not the content. */
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable;
}

/* jost-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/jost-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* jost-500 - latin */
@font-face {
  font-display: swap; 
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/jost-v20-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* jost-600 - latin */
@font-face {
  font-display: swap; 
  font-family: 'Jost';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/jost-v20-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* jost-700 - latin */
@font-face {
  font-display: swap; 
  font-family: 'Jost';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/jost-v20-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* Font families are defined here, to make site-wide adjustments easier. */
/* Though at the moment, heading and body are using the same hierarchy... */
:root {
    --heading-font: Jost, system-ui, sans-serif;
    --body-font: Jost, system-ui, sans-serif;

    --gradient-gilded: linear-gradient( 60deg,
        #d6a86b 0%,
        bisque 30%,
        burlywood 85% );
    --gradient-gilded-alt: linear-gradient( 60deg,
        bisque 0%,
        burlywood 40%,
        burlywood 50%,
        #3399ff 85% );
    --gradient-silvered: linear-gradient( 60deg,
        #444,
        #ddfdfd,
        #868686 );
    --gradient-sitch-korate: linear-gradient( 60deg,
        #f86dd5 30%,
        #30e9e9 75% );
}

body {
    margin: 0px;
    min-height: 100dvh;
    /* The default text colour for all unstyled areas.  Website follows a dark-background, light-text theme. */
    color: white;
    /* The default font for all unstyled areas. */
    font-family: var(--body-font);
    font-size: 1.1rem;

    background-color: rgb(29, 29, 51);
    /* background-color: yellowgreen; */
}

.page-wrapper {
    display: grid;
    position: relative;
    min-height: 100dvh;
    grid-template-rows: auto 1fr auto; /* Header & footer fit content; main takes remaining space */
    /* Avoid horizontal overflow */
    grid-template-columns: minmax(0, 1fr); 
    overflow: clip;
}

.page-wrapper::before {
    content:"";

    position: fixed;
    min-width: 110dvw;
    min-height: 140dvh;
    aspect-ratio: 2887 / 2480;

    background-image:url(/img/splash/venture-bg-v2.webp);

    background-size: cover;
    background-position: center;    
    background-repeat: no-repeat;
    z-index: -1;

    @media (prefers-reduced-motion: no-preference) {
        animation: scroll-landscape linear;
        @media (orientation: portrait) {
            min-width: 140dvh;
            min-height: 100dvh;
            animation: scroll-portrait linear;
        }
    }
    
    animation-timeline: scroll();
}

@keyframes scroll-landscape {
        /* translate: x y: */
    from {
        translate: 0 0;
    }
    to {
        translate: -10dvw -40dvh;
    }
}
@keyframes scroll-portrait {
        /* translate: x y: */
    from {
        translate: 0 0;
    }
    to {
        translate: -40dvh -10dvh;
    }
}

.page-wrapper.obsidian-rust-bg {
    background-image: url('../IMG/splash/vertical-repeating_obsidian-rust.webp');
    /* background-attachment: scroll; */
    background-position: center 0%;

    background-size: 100vw;
    /* This background is vertically repeatable. */
    background-repeat: repeat-y;
}

/* Main content grid */
.grid-page-adaptive-columns {
    display: grid;

        /* Columns are at least 450px (or 100% on tiny screens) and share extra space */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
    /* Rows are at least this many px tall, growing if content needs more room */
    grid-auto-rows: minmax(150px, auto);
    align-items: start;
}

/* The header banner is 95px in height. */
/* If the first grid item is an adaptive spacer, the following content will always be ready for scroll-driven animations. */
.adaptive-spacer {
    height: calc(100dvh - 195px);  /* Exactly 100px from the bottom of the viewheight. */
    width: 100%;

    @media (width > 920px) { grid-column: span 2; }
    transition: height 0.6s ease;
}

/* Paragraph styling.  My paragraphs live inside of text-panel elements, which have their own margins. */
p {
    margin: 0;
    padding: 0.5rem 0.8rem;

    @media (width > 920px) {
        padding: 1rem 1.4rem;
    }
}

h1 {
    color:burlywood;

    text-align: center;
    margin-block: 0rem;

    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--heading-font);

    @media (width > 920px) {
        font-size: 4rem;
    }
}

h2 {
    color: inherit;
    margin: 0.5rem;

    font-size: 1.3rem;
    font-weight: 600;
    font-family: var(--heading-font);

    @media (width > 920px) {
        font-size: 1.6rem;
    }
}

h3 {
    color: inherit;
    margin: 0.5rem;

    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--heading-font);

    @media (width > 920px) {
        font-size: 1.4rem;
    }
}

/* Colour of our hyperlinks.  Anchors. */
a {
    color:#3399ff; 
    font-weight: 600;
    text-decoration: none;
    transition: color 0.4s ease;
}
a:hover, 
a:focus-visible { /*And this identifies the link as navigable without a mouse, like via the tab key.  :D  :D  :D */
    color: #30e9e9;
}
a:active { /* When you actually click the link, this shows some kind of response.*/
    /* Note that the active state must be below the hover, etc, in order to actually show up in CSS. */
    color: #30e9e9;
}
/* Links that live in the header and footer are styled differently. */
.header-banner-grid a,
.footer-content-grid a {
    color: bisque;
}
.header-banner-grid a:hover, .header-banner-grid a:focus-visible,
.footer-content-grid a:hover, .footer-content-grid a:focus-visible {
    color:#3399ff;
}
/* When I want a link to stand out from the rest. */
a strong,
strong a {
  color: #d9534f;
  text-decoration: underline;
}
a:hover strong,
strong a:hover {
  color: #a94442;
}


img {  /* All images! */
    display: block; /* Prevents images from displaying as if they were in-line elements; hence, eliminating the text spacing automatically interted below the image. */

    max-inline-size: 100%; /* Cannot be horizontally scaled to be larger than the parent object. */
    /* So, in theory, this should prevent large images from creating unwanted horizontal scrollbars on the site. */
}

ul {   /* Unordered list style. */
    list-style-position: outside; /* "Outside" means the 'bullets' will not overlap with wrap-around text, even if a list item is long enough to start a new line. */

    margin: 5px;
    padding: 5px;

    @media (width > 920px) {
        margin: 8px;
        padding: 8px;
    }
}
ul li::marker {  /* The MARKER of an unordered list item (the bullet point itself). */
    color: inherit;
    /* A diamond shape. */
    content: "\25C6";  
}
/* List items */
li {
    padding: 0.5rem;
    padding-inline-start: 0.7rem;
}

ul.no-bullet li::marker {
    content: none;
}

.grid-item-wide {
    /* Takes up 2 horizontal spaces.  */
    @media (width > 920px){ grid-column: span 2;   }
}
.grid-item-tall {
    /* Takes up 2 vertical spaces.  */
    grid-row: span 2;
}
.grid-align-center {
    align-content: center;
}
.grid-justify-center {
    justify-self: center;
}

.flex-h {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}



/* HEADER BANNER AREA */
.header-banner-grid {
    display: grid;
    grid-template-rows: 93px 0fr;
    transition: grid-template-rows 0.3s ease-out;

    padding: 0px;
    padding-inline: 30px;
}
.header-banner-grid a {
    text-decoration: none;
}
.header-banner-grid.is-open {
    grid-template-rows: 93px 1fr;
}
/* The main banner space that lives in the first row of our header-banner-grid.  */
.header-row-content-primary {
    display: grid;
    grid-template-columns: 1fr 3fr;

    /* These items fill all available height. */
    grid-template-rows: 100%;

    align-items: center;
}
.banner-nav-wrapper {
    height: 100%;
    justify-self: end;
    align-content: center;
}
/* This is the horizontal navlist that displays in the primary banner (on larger screens only).  */
.banner-nav-area ul {     /* An unordered list of navigation elements. */
    /*  Nessa.  Extremely nessa.  */
    margin: 0px;
    padding: 0px;
    list-style: none;  /* No bullet points or numbers etc. */

    display: none;
    gap: 15px;   

    @media (width > 920px) {
        /* display: block; */
        display: flex;
    }
}
.banner-nav-area ul li {
    display: inline-block;
    text-align: center;
}
.slimnav-menu-toggle {
    display: none;
    height: 52px;
    width: 52px;

    @media (width <= 920px) {
        display: flex;
        align-self: center;
        justify-content: center;
        white-space: nowrap;
    }
    /* Older navy-ish blue background: #1e2836 */
    /* background: linear-gradient(60deg, #d6a86b, bisque, burlywood, burlywood);   */
    background: var(--gradient-gilded);
    -webkit-tap-highlight-color: transparent;


    /*   Styling our little hamburger ☰ here.    */
    /* place-content: center; */
    color: black;
    font-size: 22px;
    font-weight: 500;

    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 20%;
}
.slimnav-menu-toggle.is-open  {
    /* background: linear-gradient(60deg, bisque, #d6a86b, burlywood);  */
    background: var(--gradient-gilded-alt);
}

.banner-dropdown-nav-list {
    overflow: hidden;
    min-height: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    border: 0;

    transition: all 0.3s ease-out;
}
.banner-dropdown-nav-list.is-open {
    /*  Yass.  Nessa.  */
    margin-block-start: 10px;
    padding-block-start: 10px;
    margin-block-end: 20px;

    border-block-start: 1px transparent solid;  /* The sexy divider between main header row and dropdown list. */
    border-image: linear-gradient(107deg, rgba(0, 0, 0, 0), black, rgb(196, 243, 255), black, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)) 1;
}
.banner-dropdown-nav-list a {
    display: block;
    padding: 6px;
}

/*      MAIN  MAIN  Contains items BETWEEN the header and footer.       */
.main-constrainer {
    margin-block: 1rem;
    max-inline-size: 700px;
    width: 100%;
    
    justify-self: center;
    @media (width > 920px) {
        max-inline-size: 1300px; 
    }
}

/* FOOTER */
.footer-content-grid {
    margin-block-start: 12px;
    margin-block-end: 12px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    /* grid-template-rows: minmax(93px, 200px); 
    repeat(auto-fit, minmax(min(100%, 450px), 1fr))*/

    gap: 10px;
    /* padding: 10px; */

    /* place-items: center; */
    align-self: end;

    @media (width > 920px) {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;

        gap: 20px;
        /* padding: 20px; */
    }
}
.footer-grid-columns-two-auto {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto;
    place-items: center;
    gap: inherit;
    padding: 10px;
}
.padding-slim {
    padding: 7px;
    @media (width > 920px) {
        padding: 10px;
    }
}

/* Font size, margin and border spacing for various text-related elements. */
/* The colors, borders and backgrounds will be handled elsewhere. */
.text-panel {
    margin: 0.5rem;
    padding: 0.5rem 0.8rem;

    @media (width > 920px) {
        margin: 1rem;
        padding: 0.8rem 1.2rem;
    }
}
.text-panel button {
    font-size: 1.2rem;
    padding-inline: 1.2rem;
    padding-block: 0.8rem;
    @media (width > 920px) {
        padding-inline: 1.8rem;
        padding-block: 1rem;
    }
}
.text-panel button.no-pointer-events {
    background-color: #0000005e;
    color: #4444447e;
    border-color: #2222227e;
}
/* Margin (and block padding) match text-panel, and these work well together within the grid. */
.image-holder-panel {
    place-self: center;
    place-content: center;
    border-radius: 9px;
    
    margin: 0.5rem;
    padding: 0.8rem;

    @media (width > 920px) {
        margin: 1rem;
        padding: 1.2rem;
    }
}
.image-holder-panel img {
    border-radius: 9px;
    max-width: 100%;
    height: auto;
}
.image-vignette-mask {
  mask-image: radial-gradient(ellipse at center, black 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 60%, transparent 95%);
}

/* Backgrounds Area */
.gilded-banner {    /* Only the top and bottom borders will display the 'gilded' gradient.  */
    border-block-start: 1px solid;
    border-block-end: 1px solid;
    border-image: linear-gradient(107deg, black, black, bisque, #f1f0f0, black, black) 1;
}
.dark-glass-background {
    color: bisque;
    /* A dark transparent gradient looks really cool, but is distracting & unpredictable with my backgrounds and text panels. */
    /* background: linear-gradient(155deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.85)); */
    background: rgba(0,0,0, 0.6);
    /* Apply a filter to the area that shows through. */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.panel-dark-glass {
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px); 
}
.border-wide-dark-overlay {
    border: solid rgba(0, 0, 0, 0.6) 4px;
    border-radius: 8px;
}

/* Pairs nicely with dark backgrounds, such as "dark-glass" or "dark-churning" */
.gilded-border {
    border: 2px solid;
    border-image: linear-gradient(107deg, black, black, bisque, #f1f0f0, black, black) 1;
    /* Sadly, border-radius does not work with this cool gradient border image. */

    @media (width > 920px) {
        border: 3px solid;
        border-image: linear-gradient(107deg, black, black, bisque, #f1f0f0, black, black) 1;
    }
}
.silvered-border {
    border: 2px solid;
    border-image: linear-gradient(107deg, black, black, rgb(196, 243, 255), #f1f0f0, black, black) 1;

    @media (width > 920px) {
        border: 3px solid;
        border-image: linear-gradient(107deg, black, black, rgb(196, 243, 255), #f1f0f0, black, black) 1;
    }
}

.sticky-panel {
    position: sticky;
    width: 100dvw;
    justify-self: center;
    top: 0;
    margin: 0;
    border: 0;
    z-index: 100;
}
.sticky-panel.dark-glass-background {
    color: white;
    text-shadow: 0px 1px 3px black, 1px 1px 3px black;
    /* For the sticky panel, on larger screens I want the sides of the panel to be transparent. */
    /* background: linear-gradient(155deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.85)); */
    background: linear-gradient(90deg, transparent, rgba(78, 78, 78, 0.6), rgba(78, 78, 78, 0.6), transparent);
    /* The blur filter effect continues to apply. */
}
/* TEXT-AREA  */
.text-bone {
    color:bisque;
}
.text-shadow {
    text-shadow: 0px 2px 3px rgba(0, 0, 0, 0.9), 2px 3px 6px rgba(0, 0, 0, 0.6);
}
.text-shadow-deeper {
  text-shadow: 
    0 2px 3px rgba(0, 0, 0, 0.4),
    0 6px 12px rgba(0, 0, 0, 0.25),
    0 12px 24px rgba(0, 0, 0, 0.15);
}
.text-centered {
    text-align: center;
}

.heavy-text {
    font-size: 1.2rem;
    font-weight: 600;
    @media (width > 920px) {
        font-size: 1.3rem;}
}
.heavy-text a {
    font-size: 1.1rem;
    font-weight: 600;
    transition: font-size 0.3s ease;

    @media (width > 920px) {
        font-size: 1.2rem;}
}

.extra-heavy-text {
    font-size: 1.3rem;
    font-weight: 700;
    @media (width > 920px) {
        font-size: 1.6rem;}
}

.text-silvered {
    /* To create a gradient effect takes 3 steps.  */
    /* This style is darker grey to the sides, lighter in the middle - looks flashy against a dark background. */

    /* Step 1 of 3: Define the gradient background */
    background: var(--gradient-silvered);
    /* Step 2 of 3: Clip the background strictly to the text characters */
    background-clip: text;
    -webkit-background-clip: text; /* Required for older/some mobile browsers */
    /* Step 3 of 3: Make the actual text invisible so the background shows through */
    color: transparent;
    /* If another style tries to add a text-shadow, it ruins this effect.  Disable it.  */
    text-shadow: none;
}
.text-sitch-korate {   /* Same logic as the silvered text, above. */
    background: var(--gradient-sitch-korate);
    background-clip: text;
    -webkit-background-clip: text; 
    color: transparent;
    text-shadow: none;
}

.banner-subheader-text {
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--heading-font);
    text-align: center;

    @media (width > 920px) {
        font-size: 1.3rem;
    }
}

/* Questionnaire Section  --  Questionnaire Section   --  Questionnaire Section   --  Questionnaire Section   --  Questionnaire Section  */
.questionnaire-container {
    display: grid;
    grid-template-rows: repeat();
    overflow: hidden;
}

/* Each group of radio option labels will be within a fieldset. */
fieldset.questionnaire-fieldset {
    border: none;
    margin: 0;
    padding: 0;
    padding-block-end: 5px;

    display: grid;
    grid-template-rows: repeat(1fr);
    @media (width > 920px) {
        margin: 10px;
        padding-inline: 10%;
        padding-block-end: 10px;
    }
}

.option-label {
    display: block;
    /* justify-self: center; */

    cursor: pointer; 
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;

    color:bisque;

    margin-inline: 6px;
    margin-block: 6px;
    padding: 0.8rem;  

    border-radius: 8px;
    border: 2px solid #444;
    background-color: #0000007c;

    box-shadow: 0 1ch 3ch rgba(0, 0, 0, 0.25);
    @media (width > 920px) {
        padding-inline: 1.3rem;
    }
}

.option-label:hover {
    color: white;
    border: 2px solid #1a1a1a;
    background-color: #4444447c;
}
.option-label:active {
    border: 2px solid white;
}

/* Hide the default radio button circle */
.option-label input[type="radio"] {
    display:block;
    -webkit-appearance: none;
    appearance: none;
}

/* Change container style when an option is selected */
.option-label:has(input[type="radio"]:checked) {
    border-color: bisque;
    background-color: #111;
    color: white;
}
.option-label.no-pointer-events {
    pointer-events: none; 
}

/*      SVG SPRITE SECTION      ~       SVG SPRITE SECTION      ~       SVG SPRITE SECTION      ~       SVG SPRITE SECTION      ~       SVG SPRITE SECTION      ~        */
/*      ~       SVG SPRITE SECTION      ~       SVG SPRITE SECTION      ~       SVG SPRITE SECTION      ~       SVG SPRITE SECTION      ~       SVG SPRITE SECTION      ~        */
/*      SVG SPRITE SECTION      ~       SVG SPRITE SECTION      ~       SVG SPRITE SECTION      ~       SVG SPRITE SECTION      ~       SVG SPRITE SECTION      ~        */

svg {
    /* If no height is later specified, default to this size. */
    height: 123px;
    width: 100%;

    /* filter: drop-shadow(0px 0px 10px #cc0099); */
}

/*  My svg anchors are paired with a non-anchor duplicate path, using a different fill gradient (that one is visible by default). */
/*  When you hover over the link, the actual anchor becomes visible - creating the illusion of a gradient cross-fade. */
svg a {
    -webkit-tap-highlight-color: transparent;

    opacity: 0;
    transition: opacity 0.4s ease;
}
/* If a sprite is clicked or tapped, it will change colour. */
svg a:hover {
    opacity: 0.99;
}
svg a:active {
    filter: drop-shadow(0px 0px 10px #cc0099);
}

.svg-height-small {
    height: 52px;
    width: auto;
}
.svg-height-small-medium {
    height: 52px;
    width: auto;
    @media (width > 920px) {
        height: 72px;
    }
}
.svg-height-medium {
    height: 72px;
    width: auto;
}
.svg-height-large {
    height: 90px;
    width: auto;
}
.svg-height-xlarge {
    height: 108px;
    width: auto;
}

.there-canbe-onlyone-small {
    display: block;
    @media (width > 920px) {
        display: none;
    }
}
.there-canbe-onlyone-large {
    display: none;
    @media (width > 920px) {
        display: block;
    }
}

/* Animation Section  */

/* Describes the 'normal' state of text that will be able to fade away, when JS adds 'now-fading' class, below. */
/* JS; set delay until fade complete - change to new text & remove 'now-fading' class - opacity will transition back to normal. */
.can-fade {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}
.now-fading {
    opacity: 0;
}

.anim-appear-from-right {
    opacity: 1;
    transform: translateX(0) scale(1);
    
    transition: opacity 1s ease-out, transform 1s ease-out;

    @starting-style {
        opacity: 0;
        transform: translateX(10vh) scale(0.95);
    }
}
.anim-fade-in {
    opacity: 1;
    
    transition: opacity 2s ease-out;

    @starting-style {
        opacity: 0;
    }    
}

/* Scroll-driven animations. */
@keyframes appear-from-right {
  from {
    opacity: 0;
    transform: translateX(20vh);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes appear-from-left {
  from {
    opacity: 0;
    transform: translateX(-20vh);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes appear-from-bottom {
  from {
    opacity: 0;
    transform: translateY(20vh);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/*  By default, items appear from the left.   */
/*  If these scroll anim elements are children of "scroll-anim-flipper-holder", they will toggle between scrolling in from the left and right.    */
.scroll-anim-appear-from-side {
    /* Attach your normal timed animation */
    animation: appear-from-left 0.6s ease-out both;

    /* Trigger the animation when a percentage of the item has entered the viewport.  */
    timeline-trigger: --reveal view() entry 40%;
    /* Tell the animation to play when triggered */
    animation-trigger: --reveal play-once;
}
.scroll-anim-flipper-holder > :nth-child(odd).scroll-anim-appear-from-side {
    /* As the first item is the banner */
    animation: appear-from-right 0.6s ease-out both;
}

.higher-auto-scroll {
    scroll-margin-block-start: 6rem;

    @media (width > 920px) {
        scroll-margin-block-start: 10rem;
    }
}

.lower-auto-scroll {
    scroll-margin-block-end: 6rem;

    @media (width > 920px) {
        scroll-margin-block-end: 10rem;
    }
}

