:root {
    --bs-primary: #ebac2d;
    --bs-primary-rgb: 235, 172, 45;
    --bs-nav-link-font-size: 18px;

    
    --bs-link-color: #ebac2d;
    --bs-link-color-rgb: 235, 172, 45;
    --bs-link-hover-color: #d19220;
    --bs-link-hover-color-rgb: 209, 146, 32;


    --bs-secondary: #888888;
    --bs-secondary-rgb: 136, 136, 136;
    --bs-nav-link-font-size: 18px;

    --bs-danger: #fe3d50;
    --bs-danger-rgb: 254, 61, 80;

    --paper-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.25'/%3E%3C/svg%3E");

    --main-gradient: /* warm glow, upper left */
      radial-gradient(
        ellipse at 0% 0%,
        #f07b58 0%,
        rgba(240,123,88,.85) 0%,
        rgba(240,123,88,0) 60%
      ),

      /* lighter purpley glow, upper right */
      radial-gradient(
        ellipse at 68% 0,
        rgba(168,102,148) 0%,
        rgba(168,102,148,.85) 20%,
        rgba(168,102,148,0) 75%
      ),

      /* red glow, lower left */
      radial-gradient(
        ellipse at 0% 100%,
        rgba(177,18,53,1) 0%,
        rgba(177,18,53,.9) 5%,
        rgba(177,18,53,0) 75%
      ),

      /* magenta center field */
      radial-gradient(
        circle at 40% 35%,
        rgba(193,70,121,1) 0%,
        rgba(193,70,121,.8) 0%,
        rgba(193,70,121,0) 70%
      ),

      /* base */
      #4a2b63;

  }

.dark-popover {
  --bs-popover-bg: #444444;
  --bs-popover-border-color: #494949;
  --bs-popover-body-color: #FFFFFF;
}

/* =========================================================
   BASE / RESET
========================================================= */

/* html { height: 100%; } */

@keyframes bg_in  { from { background-size: 200% 200%; } to { background-size: 300% 300%; } }

body {
  margin: 0;
  padding: 0;
  min-height: 100%;

  font-family: "effra-cc-variable", sans-serif;
  color: #FFFFFF;
}

body:not(#home) {
  background: #212121;
  background-size: 100% 100%;
  background-position: 0% 0%;
  /* New bg I'm testing */
  &#enterprise  {
    background-color: #262626;
    background-image: radial-gradient(circle at top, #303030, #262626);
    background-size: contain;
  }

  /*&::before { position: fixed; top: 68px; right: -50%; left: -50%; z-index: 1; height: 20px; background: linear-gradient(to right, rgba(240,123,88,1), #212121, rgba(193,70,121,1)); background-attachment: fixed; filter: blur(50px);
  background-repeat: no-repeat !important; background-attachment: fixed; content: ""; }*/

  /*background:
  radial-gradient(
    ellipse at 0% 0%,
    rgba(240,123,88,1) 0%,
    rgba(240,123,88,.5) 10%,
    rgba(240,123,88,0) 75%
  ),

  radial-gradient(
    circle at 100% 0%,
    rgba(193,70,121,1) 0%,
    rgba(193,70,121,.5) 10%,
    rgba(193,70,121,0) 40%
  ),*/

  /* magenta center field */
  /*radial-gradient(
    circle at 100% 100%,
    rgba(168,102,148) 0%,
    rgba(168,102,148,.35) 0%,
    rgba(168,102,148,0) 40%
  ),*/

  /*radial-gradient(
    ellipse at 0% 0%,
    rgba(168,102,148,0) 80%,
    rgba(168,102,148,.35) 100%
  ),*/

  /* magenta center field */
  /*radial-gradient(
    ellipse at 0% 0%,
    rgba(177,18,53,0) 80%,
    rgba(177,18,53,.3) 90%,
    rgba(177,18,53,1) 100%
  ),*/

  /* base */
/*  #212121;*/
  background-attachment: fixed;
  background-repeat: no-repeat !important;
  background-attachment: fixed;
  background-size: 300% 300%;
  background-position: 100% 100%;
  transition: background-size .8s ease-out, background-position .2s ease-out;
  animation: bg_in .8s ease-out backwards;
  animation-delay: .2s;
}

/* =========================================================
   TYPOGRAPHY
========================================================= */

h1 {
  font-variation-settings: 'wght' 300;
}

h2 {
  color: #DDD;
  font-variation-settings: 'wght' 200;
  font-size: 2.25rem;

  + h3  { margin-top: 1rem; }

  &:has(cite)  { font-variation-settings: 'wght' 100; color: #BBB; }

  cite  { font-variation-settings: 'wght' 200; color: #DDD; }

}

h3 {
  color: #999;
  font-variation-settings: 'wght' 200;
  font-size: 2rem;

  &:has(cite)  { font-variation-settings: 'wght' 100; color: #898989; }

  cite  { font-variation-settings: 'wght' 200; color: #999; }

}

p {
  color: #DADADA;
  font-size: 18px;
  font-variation-settings: 'wght' 200;
}

.lead {
  max-width: 620px;
  margin: 0 auto 50px;
  font-variation-settings: 'wght' 200;
}

blockquote p  { position: relative;

  &:before,
  &:after   { display: inline; opacity: .25; font-variation-settings: 'wght' 300; font-size: 2em; line-height: 0; vertical-align: -0.35em; }

  &:before  { content: "\201C"; }
  &:after   { content: "\201D"; }

}

.text-shadow  { text-shadow: rgba(0,0,0,.25) 0 1px 5px; }

mark.underline  { background: none; text-decoration: underline; }

/* =========================================================
   LAYOUT / UTILITIES
========================================================= */

.container,
body > footer { max-width: 972px; }

.stickable { top: -1px; }

.well { background-color: #191919; border-radius: var(--bs-border-radius-lg); }

figcaption  { padding: 5px; background-color: #191919; font-size: 14px; font-variation-settings: 'wght' 400; color: #888; }

figcaption:first-child  { border-top-left-radius: var(--bs-border-radius-lg); border-top-right-radius: var(--bs-border-radius-lg); }
figcaption:last-child   { border-bottom-left-radius: var(--bs-border-radius-lg); border-bottom-right-radius: var(--bs-border-radius-lg); }

/* =========================================================
   HEADER
========================================================= */

header { display: flex; align-items: center; position: relative; z-index: 2; font-variation-settings: 'wght' 800; background: var(--main-gradient); box-shadow: rgba(10,10,10,.25) 0 1px 3px; /*border-bottom-width: 5px; border-bottom-style: solid; border-image-slice: 1; border-image-source: linear-gradient(to right, rgba(240,123,88,1), rgba(193,70,121,1));*/ transition: transform .2s ease-out; }

body.glightbox-open header { transform: translateY(-50%); }

@media (min-width: 501px) {

/* header state: not stuck */
  header:not(.stuck) {
    height: 70px;
    transition: height .1s ease-out, border-width .1s ease-out;
  }

  /* header state: stuck */
  header.stuck {
    height: 44px;
    /*border-width: 1px;*/
    transition: height .3s ease-out, border-width .3s ease-out;
  }

}

@media (max-width: 500px) {

  header  { height: auto; }

  .navbar-brand { width: 100%; padding-top: 1rem;

    a { padding: 0; }

  }

}

/* dropdown items */
header .dropdown-item { font-variation-settings: 'wght' 400; }

/* container inside header */
header .container { position: relative; z-index: 3; }

/* navbar brand */
header .container .navbar-brand { font-variation-settings: 'wght' 100; transition: flex-grow .1s ease-out;

  /*a { background:
    radial-gradient(circle at top, #FFF, var(--bs-primary)),
    radial-gradient(circle at top, #FFF, var(--bs-primary));
    background-clip: text; color: transparent !important; }*/

}

/* frosted overlay */
.frosted { position: absolute; inset: 0; z-index: 1; width: 100%; height: 200%; background-color: rgba(10,10,10,.1); transition: background-color 1s ease-out;

  .stuck &  { background-color: rgba(0,0,0,.35); }

  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);

  -webkit-mask-image: linear-gradient(
    to bottom,
    black 0% 50%,
    transparent 50% 100%
  );

  mask-image: linear-gradient(
    to bottom,
    black 0% 50%,
    transparent 50% 100%
  );
}

/* frosted transitions (state-dependent) */
/*header:not(.stuck) .frosted {
  transition: border-radius .2s ease-in,
              margin .2s cubic-bezier(0.100, 1.650, 0.255, 1.005);
}

header.stuck .frosted {
  transition: border-radius .2s ease-in,
              margin .2s ease-out;
}*/

/* svg mask */
.svg-mask {
  position: absolute;
  inset: 0;
  width: 100%;
}


/* =========================================================
   TEXT / INLINE ELEMENTS
========================================================= */

footer  { color: var(--bs-secondary); }

/* =========================================================
   TEXT / INLINE ELEMENTS
========================================================= */

del {
  position: relative;
  border-radius: 2px;

  text-decoration-thickness: .6em;
  font-weight: bold;

  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

del::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  min-width: 20px;
  height: 1.05em;

  z-index: 1;

  background-color: #FFF;
  border-radius: 2px;

  transform: rotateZ(.75deg) scale(1.1);
}

.paper del::before  { background-color: #000; }

del:nth-child(2)::before {
  transform: rotateZ(-.5deg) skewX(-6deg);
}

/* =========================================================
   MEDIA / GRID HELPERS
========================================================= */

.row [class*="col"] {
  margin-top: calc(var(--bs-gutter-x) * .5);
  margin-bottom: calc(var(--bs-gutter-x) * .5);
}

.row a.glightbox img {
  display: block;
  width: 100%;
  cursor: zoom-in;
}

/* Justified rows */

.row.justified img {
    display: block;
    width: 100%;
    height: auto;
}

.row.justified > [class*="col-"] {
    min-width: 0;
}

/* Portfolio image placeholders */

:is(.design, .photography) img {
  max-width: 100%;
  height: auto;
}

:is(.design, .photography) .row img:not(.is-transparent):not(.is-loaded) {
  /* Change these two values to restore a colored placeholder palette. */
  --placeholder-orb-1-rgb: 228, 228, 228;
  --placeholder-orb-2-rgb: 174, 174, 174;
  background-color: #333;
  background-image:
    radial-gradient(circle at top left, rgba(var(--placeholder-orb-1-rgb), .36) 0%, rgba(var(--placeholder-orb-1-rgb), .22) 16%, rgba(var(--placeholder-orb-1-rgb), .10) 34%, rgba(var(--placeholder-orb-1-rgb), .025) 56%, transparent 74%),
    radial-gradient(circle at bottom right, rgba(var(--placeholder-orb-2-rgb), .30) 0%, rgba(var(--placeholder-orb-2-rgb), .10) 22%, transparent 48%);
  background-size:
    120% 120%,
    95% 95%;
  background-position: top left, bottom right;
  background-repeat: no-repeat;
  animation: portfolio-image-placeholder 3.5s infinite;
}

:is(.design, .photography) img.is-loaded {
  animation: none;
  background: none;
}

@keyframes portfolio-image-placeholder {
  0%, 100% {
    background-size:
      120% 120%,
      95% 95%;
    animation-timing-function: cubic-bezier(.45, .05, .55, .95);
  }

  42% {
    background-size:
      175% 175%,
      140% 140%;
    animation-timing-function: cubic-bezier(.45, .05, .55, .95);
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.design, .photography) img:not(.is-transparent) {
    animation: none;
  }
}

/* =========================================================
   HOME
========================================================= */

@keyframes pod_in  { from { transform: translateY(10%); opacity: 0; } }

body#home {  /*background-blend-mode: hard-light;*/

/* Gradient version */
/*  background-color: rgb(168,102,148);*/
  background: var(--main-gradient);
  background-attachment: fixed;
  background-repeat: no-repeat !important;
  background-size: 100% 100%;
  background-position: 50% 50%;
  transition: background-size .8s ease-out, background-position .2s ease-out;
/*  animation: bg_in .8s ease-out backwards;*/
  /*animation-direction: reverse;*/
/*  animation-delay: .2s;*/

/* Image version: */
/*background-color: color(srgb 0.2822 0.1335 0.3654); background-image: url("/images/colors.png"); background-attachment: fixed; background-repeat: no-repeat; background-size: 200% 200%; background-position: bottom right;*/

  header  { display: none; }

  > .container:not(footer) { display: flex; flex-direction: column; justify-content: space-evenly; height: 100%; padding-top: 3rem !important; }

  > footer.container  { display: none !important; }

  h1  { font-variation-settings: 'wght' 700; }

  h1 + p  { gap: .33ch;

    span strong  { text-shadow: none; }

  }

  strong  { font-variation-settings: 'wght' 400; }

  .row:has(.card:hover) .card:not(:hover) { background-color: rgba(200,200,200,.1); /*transform: scale(.98);*/

    .card-title { color: hsl(from var(--bs-primary) h 50% l) !important; }

  }

.col-sm-4:nth-child(1) .card  { animation-delay: .2s; }
.col-sm-4:nth-child(2) .card  { animation-delay: .3s; }
.col-sm-4:nth-child(3) .card  { animation-delay: .4s; }

  .card  { /*background: #222 radial-gradient(circle at bottom, #444, #222); background-image: url("/images/colors.png"); background-size: 210% 210%; background-position: bottom right; background-blend-mode: screen; background-attachment: fixed; background-repeat: no-repeat;*/ border: none !important; background: rgba(255,255,255,.15); /*box-shadow: none !important;*/ /*box-shadow: rgba(255,255,255,.075) 0 0 30px inset;*/ animation: pod_in .6s cubic-bezier(.6,.65,.3,1) backwards; transition: background-color .6s ease-out, transform .2s ease-out;

    &:has(.stretched-link:hover) { background-color: rgba(255,255,255,.25); transition: background-color 0s, transform 0s; transform: scale(1.02); }

    .card-title { font-size: 22px; font-variation-settings: 'wght' 600; transition: color .2s ease-out; }

    .stretched-link { height: 0; }

  }

}

/* =========================================================
   ENTERPRISE
========================================================= */

/* The Main Container (Always stays perfectly straight/clean) */
/*.paper {
  position: relative;
  background: white;
  background-image: var(--paper-texture);
  padding: 50px;
  margin: 0 auto 20px;
  width: 100%;
  max-width: 736px;
  border-radius: 3px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 1);
  box-sizing: border-box;

  > * { color: black; font-family: "Courier New", serif; text-shadow: black 0 0 1px; }
  > h2 { font-size: 1rem; text-transform: uppercase;  }
  > p { font-size: 1rem; font-weight: normal; }

  &.torn-top::before,
  &.torn-bottom::after  {
    content: "";
    position: absolute;
    left: 1px;
    right: 1px;
    height: 4px;
    background: #FFF;
    background-image: var(--paper-texture);
    filter: url(#torn-edge-filter);
    pointer-events: none;
  }

  &.torn-top::before    { top: -1px; }

  &.torn-bottom::after  { bottom: -1px; }

  &#web-apps-1  { transform: rotate(0.8deg); }
  &#web-apps-2  { transform: rotate(-1deg); }
  &#sharepoint-themes  { transform: rotate(0.5deg); }
  &#splash-pages  { transform: rotate(-0.25deg); }

}*/

@keyframes shake-lock {

    0%,
    100%  { transform: translate(-50%, -50%) rotate(0deg); }
    25%   { transform: translate(-50%, -50%) rotate(-12deg); }
    50%   { transform: translate(-50%, -50%) rotate(12deg); }
    75%   { transform: translate(-50%, -50%) rotate(-8deg); }

}

/*@keyframes shake-lock {
  0%,
  100% { transform: translate(-50%, -50%) translateX(0); }
  25% { transform: translate(-50%, -50%) translateX(-6px); }
  50% { transform: translate(-50%, -50%) translateX(6px); }
  75% { transform: translate(-50%, -50%) translateX(-4px); }
}*/

[class*="col-"]:has(> img.blurred)  { position: relative; /*cursor: pointer;*/ user-select: none; will-change: transform;

  &::before {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    content: "";
    width: 32px;
    height: 32px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23444' d='M14 58h34c2.21 0 4-1.79 4-4V23c0-.55-.45-1-1-1h-5v-5c0-8.27-6.73-15-15-15S16 8.73 16 17v5h-5c-.55 0-1 .45-1 1v31c0 2.21 1.79 4 4 4ZM18 17c0-7.17 5.83-13 13-13s13 5.83 13 13v5H18v-5ZM12 24h38v30c0 1.1-.9 2-2 2H14c-1.1 0-2-.9-2-2V24Z'/%3E%3Cpath fill='%23444' d='M30 39.82V47c0 .55.45 1 1 1s1-.45 1-1v-7.18c1.16-.41 2-1.51 2-2.82 0-1.65-1.35-3-3-3s-3 1.35-3 3c0 1.31.84 2.41 2 2.82ZM31 36c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1Z'/%3E%3C/svg%3E") center / contain no-repeat;
    transform: translate(-50%, -50%);
    mix-blend-mode: luminosity;
    opacity: .75;
  }

  &.animate::before { animation: shake-lock 0.35s ease-in-out; }

}


.paper {
  position: relative;
  box-sizing: border-box;
  padding: 50px;
  margin: 0 auto 20px;
  width: 100%;
  max-width: 736px;
  background: white;
  background-image: var(--paper-texture);
  border-radius: 3px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 1);

  > * {
    font-family: "Courier New", serif;
    color: black;
    text-shadow: black 0 0 1px;
  }

  > p {
    font-size: 1rem;
    font-weight: normal;
  }

  &.torn-top::before,
  &.torn-bottom::after {
    position: absolute;
    left: 1px;
    right: 1px;
    height: 12px;
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1000' height='20' viewBox='0 0 1000 20'%3E%3Cfilter id='torn'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.25' numOctaves='4' stitchTiles='stitch' result='noise'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='noise' scale='10' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Crect x='0' y='12' width='1000' height='4' fill='white' filter='url(%23torn)'/%3E%3C/svg%3E");
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: 100% 20px;
    background-position: center;
    pointer-events: none;

  }

  /* Torn Top Edge */
  &.torn-top::before {
    top: -8px;
  }

  /* Torn Bottom Edge */
  &.torn-bottom::after {
    bottom: -8px;
    transform: scaleY(-1);
  }

  &#web-apps-1 {
    transform: rotate(0.8deg);
  }

  &#web-apps-2 {
    transform: rotate(-1deg);
  }

  &#sharepoint-themes {
    transform: rotate(0.5deg);
  }

  &#splash-pages {
    transform: rotate(-0.35deg);
  }

  &#and-much-more {
    transform: rotate(0.3deg);
  }
}

/* =========================================================
   CLIENTS
========================================================= */

@media (max-width: 768px) {

  .well#rock_n_roll { all: unset; }

}

@media (min-width: 769px) {

  .jewel_case { transform: rotate(-18deg); }

}

/* =========================================================
   GLIGHTBOX
========================================================= */

.glightbox-container  {

  .goverlay { background: rgba(17,17,17,.9); -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px); }

  .gslide-image img, 
  .gslide-media { box-shadow: none; }

  /* TEMPORARY: Hide description in glightbox until I figure out how to make it good */
  .gslide-description { display: none; }

  .gcontainer  {

    .gslide-description,
    .gdesc-inner {
      background: none;
      color: inherit;
      font: inherit;
      line-height: inherit;
  /*    padding: 0;*/
      max-width: none;
    }

    .gslide-title {
      display: none;
    }

    .gslide-description {
      color: inherit;
      font: inherit;
      line-height: inherit;
      /*max-width: none !important;
      position: fixed;
      bottom: 0;
      right: 0;
      left: 0;
      background-image: linear-gradient(to top, rgba(0,0,0,.5), rgba(0,0,0,.25));*/

  /*    -webkit-backdrop-filter: blur(50px);
      backdrop-filter: blur(50px);
  */

      .gslide-desc  { padding: .5rem 1rem; text-align: center; color: #777; font-family: "effra-cc-variable", sans-serif; }

    }

  }

}

/* =========================================================
   COMMENTED / DISABLED CODE (PRESERVED)
========================================================= */

/*
html { height: 100%; }

header .frosted .svg-mask { width: 972px; }
header .svg-mask rect { rx: 10px; transition: rx 1s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

header.stuck .svg-mask { width: 100%; }
header.stuck .svg-mask rect { rx: 0; transition: rx 1s ease-out; }

img { transition: transform .4s ease-out; }
img:hover { transition: transform .1s ease-out; transform: scale(1.02); }

header .frosted {
  background: linear-gradient(to bottom, rgba(0,0,0,.25), transparent);
}

body {
  filter: contrast(170%) brightness(100%);
  background:
    radial-gradient(circle at -18% 50%, rgba(168,0,255,1), rgba(8,8,8,0)),
    radial-gradient(circle at 150% -50%, rgba(111,30,30,1), rgba(230,189,0,1)),
    url("data:image/svg+xml,...");
}
*/
