/* Global variables. */
:root, ::backdrop {
  /* Set sans-serif & mono fonts */
  --sans-font: "Inter", -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir,
    "Nimbus Sans L", Roboto, "Noto Sans", "Segoe UI", Arial, Helvetica,
    "Helvetica Neue", sans-serif;
  --mono-font: Consolas, Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
  
  --radius: 10px;
  --radius-large: 20px;
  --radius-round: 50px;

  --font-size-regular: 1.25rem;
  --font-size-small: 1.1rem;

  /* Default (light) theme */
  --bg: #fff;
  --bg-rgb: 255, 255, 255;
  --bg-secondary: #E9EBED;
  --text: #171717;
  --text-light: #6d6f70;
  --accent: #0857E8;
  --accent-bg: #CEDDFA;
  --border: #ddd;
  --shadow: rgba(0, 0, 0, 0.2) 0px 18px 50px -10px;
  --shadow-hover: rgba(0, 0, 0, 0.4) 0px 18px 50px -10px;
  --avatar-outline: 1px solid rgb(0, 0, 0, .1);
}

.hide-light-mode {
  display: none;
}
.hide-dark-mode {
  display: block;
}

@media only screen and (max-width: 720px) {
  :root, ::backdrop {
    --font-size-regular: 1.15rem;
    --font-size-small: 1rem;
  }
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
  :root, ::backdrop {
    color-scheme: dark;
    --bg: #060707;
    --bg-rgb: 6, 7, 7;
    --bg-secondary: #1a1c1e;
    --accent: #1866F4;
    --accent-bg: #132547;
    --text: #fafafa;
    --text-light: #a1a2a3;
    --border: #33363A;
    --shadow: rgba(255, 255, 255, 0.2) 0px 10px 40px -10px;
    --shadow-hover: rgba(255, 255, 255, 0.4) 0px 10px 40px -10px;
    --avatar-outline: 1px solid rgb(255, 255, 255, .1);
  }
  img, video {
    opacity: 0.9;
  }
  .hide-light-mode {
    display: block;
  }
  .hide-dark-mode {
    display: none;
  }
}

b, strong {
  font-weight: bold;
}

/* Reset box-sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

::selection {
  background: var(--accent-bg);
}

/* Reset default appearance */
textarea,
select,
input,
progress {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

html {
  /* Set the font globally */
  font-family: var(--sans-font);
  scroll-behavior: smooth;
}

/* Make the body a nice central block */
body {
  color: var(--text);
  background-color: var(--bg);
  font-size: var(--font-size-regular);
  line-height: 1.5;
  margin: 0;
  letter-spacing: 0.01ch;
}
body > * {
  grid-column: 2;
}

/* Add a little padding to ensure spacing is correct between content and header > nav */
main {
  padding: 2rem 0;
}

body > footer {
  padding: 3rem 1rem;
  color: var(--text-light);
  text-align: center;
  border-top: 1px solid var(--border);
}

/* Format headers */
h1 {
  font-size: 3.8rem;
  font-weight: 900;
  margin: 0;
  text-align: center;
}

h2 {
  font-size: 2.6rem;
  font-weight: 900;
  margin: 4rem 0 1.5rem;
}

h3 {
  font-size: 2rem;
  font-weight: 800;
  margin: 4rem 0 0;
}

h4 {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.8rem;
  margin: 0 0 1rem;
}
h4 + p {
  margin-top: 0;
}

h5 {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 2rem 0 1rem;
}

h6 {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: bold;
  text-transform: uppercase;
  margin: 0;
}
h6 + p {
  margin-top: .5rem;
}
h6 + h2 {
  margin-top: .5rem;
}

p {
  margin: 1.5rem 0;
}

ul, ol {
  padding-left: 2rem;
}

ul.compact, ol.compact, ul.compact li, ol.compact li {
  margin: 0;
}

p.subtitle {
  font-size: 1.6rem;
  color: var(--text-light);
  margin-bottom: 3rem;
}

/* Prevent long strings from overflowing container */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Fix line height when title wraps */
h1,
h2,
h3 {
  line-height: 1.1;
}

/* Reduce header size on mobile */
@media only screen and (max-width: 720px) {
  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.6rem;
  }

  h4, p.subtitle {
    font-size: 1.3rem;
  }
  h6 {
    font-size: 0.9rem;
  }
  .hide-mobile {
    display: none;
  }
}

/* Format links & buttons */
a,
a:visited {
  color: var(--accent);
  font-weight: bold;
  text-decoration-thickness: 2px;
  transition: 0.2s ease;
}

a:hover {
  text-decoration-color: transparent;
}

h2 a, h3 a {
  color: var(--text) !important;
  text-decoration: none;
  font-weight: bold;
}

button,
.button,
a.button, /* extra specificity to override a */
input[type="submit"],
input[type="reset"],
input[type="button"],
label[type="button"] {
  border: 0;
  background: var(--text);
  color: var(--bg);
  font-size: var(--font-size-regular);
  font-weight: bold;
  padding: 0.7rem 1.1rem;
  line-height: normal;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
}

.button.secondary {
  background: var(--bg-secondary);
  color: var(--text);
  margin-left: 0.3rem;
}
.button.secondary:hover {
  text-decoration-color: var(--text) !important;
}

.button[aria-disabled="true"], 
input:disabled,
textarea:disabled,
select:disabled,
button[disabled] {
  cursor: not-allowed;
  background-color: var(--bg-secondary);
  border-color: var(--bg-secondary);
  color: var(--text-light);
  margin: 0;
  padding: 0.6rem 1rem;
}

.buttons .button {
  margin-top: .5rem;
}

input[type="range"] {
  padding: 0;
}

/* Set the cursor to '?' on an abbreviation and style the abbreviation to show that there is more information underneath */
abbr[title] {
  cursor: help;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

button:enabled:hover,
.button:not([aria-disabled="true"]):hover,
input[type="submit"]:enabled:hover,
input[type="reset"]:enabled:hover,
input[type="button"]:enabled:hover,
label[type="button"]:hover {
  cursor: pointer;
  text-decoration-color: var(--bg);
}

.button:focus-visible,
button:focus-visible:where(:enabled),
input:enabled:focus-visible:where(
  [type="submit"],
  [type="reset"],
  [type="button"]
) {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Format navigation */
header {
  font-size: 1rem;
  line-height: 1.4;
  padding: 10px;
  background: rgba(var(--bg-rgb), 0.6);
  position: fixed;
  width: 100%;
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  z-index: 10000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

header.transparent {
  background: transparent;
}

header.transparent a.logo {
  color: white;
}

header.transparent .button {
  background: white;
  color: black;
}
header.transparent .button:hover {
  text-decoration-color: black;
}

header a.logo {
  float: left;
  font-size: 1.4rem;
  padding: 0;
  margin-left: .5rem;
  color: var(--text);
  text-decoration: none;
}

header .button {
  margin-bottom: 0;
}

aside {
  margin: 0 0 2rem 4rem;
  padding: 0 0 0 3rem;
  border-left: 1px solid var(--border);
  font-size: var(--font-size-small);
  width: 25%;
  float: right;
}
@media only screen and (max-width: 720px) {
  aside {
    display: none;
  }
}
aside p {
  margin: 0 0 15px;
}
aside h6 {
  margin: 0;
}
aside p:last-child {
  margin: 0;
}
*[dir="rtl"] aside {
  float: left;
}

/* Make aside full-width on mobile */
@media only screen and (max-width: 720px) {
  aside {
    width: 100%;
    float: none;
    margin-inline-start: 0;
  }
}

article, fieldset, dialog {
  border: 1px solid var(--border);
  padding: 1.2rem;
  border-radius: var(--radius-large);
  margin: 1.5rem 0;
}

article {
  background: var(--bg-secondary);
  border: 0;
}

article.primary {
  background: var(--bg);
  box-shadow: var(--shadow);
  margin-top: 2.5rem; 
  padding: 1.2rem;
}
@media only screen and (min-width: 1400px) {
  article {
    padding: 1.5rem;
  }
  article.primary {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding: 1.5rem;
  }
}
article.primary p {
  font-size: var(--font-size-regular);
  margin-top: .5rem;
}
article.primary h6:not(:first-child) {
  margin-top: 1.8rem;
}

article :first-child,
section :first-child {
  margin-top: 0;
}

article :last-child,
section :last-child {
  margin-bottom: 0;
}

article p, article li {
  font-size: var(--font-size-small);
  margin: 1rem 0;
}

article h4, article h3 {
  margin-top: .2rem;
}

.icon {
  display: inline-block;
  border-radius: 50px;
  width: 60px;
  height: 60px;
  background: var(--accent);
  color: white;
  font-size: 28px;
  padding: 10px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.icon img {
  width: 30px;
  height: 30px;
  display: block;
}
.icon + h3 {
  margin-top: 0;
}

section {
  padding: 3rem 1.2rem;
}
section > div:first-child {
  margin: auto;
  max-width: 900px;
}
section.cta {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 4rem 0 2rem;
  text-align: center;
}





details {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

summary {
  cursor: pointer;
  font-weight: bold;
  padding: .8rem 0 .8rem 30px;
  margin: 0;
  word-break: break-all;
  list-style: none;
  background: url(img/chevron-right.svg) no-repeat 0 50%;
  background-size: 20px;
}
summary:hover {
  color: var(--text-light);
}
details[open] summary {
  background-image: url(img/chevron-down.svg);
}

details[open] > summary + * {
  margin-top: 0;
}

details[open] > summary {
  margin-bottom: 0.5rem;
}

details[open] > :last-child {
  margin-bottom: 0;
}

/* Format tables */
table {
  border-collapse: collapse;
  margin: 1.5rem 0;
}

figure > table {
  width: max-content;
  margin: 0;
}

td,
th {
  border: 1px solid var(--border);
  text-align: start;
  padding: 0.5rem;
}

th {
  background-color: var(--accent-bg);
  font-weight: bold;
}

tr:nth-child(even) {
  /* Set every other cell slightly darker. Improves readability. */
  background-color: var(--accent-bg);
}

table caption {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* Format forms */
textarea,
select,
input,
button,
.button {
  font-size: inherit;
  font-family: inherit;
  padding: 0.5rem;
  border-radius: var(--radius-round);
  box-shadow: none;
  max-width: 100%;
  display: inline-block;
}
textarea,
select,
input {
  color: var(--text);
  background-color: var(--bg);
  border: 1px solid var(--border);
}
label {
  display: block;
}
textarea:not([cols]) {
  width: 100%;
}

/* Add arrow to drop-down */
select:not([multiple]) {
  background-image: linear-gradient(45deg, transparent 49%, var(--text) 51%),
    linear-gradient(135deg, var(--text) 51%, transparent 49%);
  background-position: calc(100% - 15px), calc(100% - 10px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-inline-end: 25px;
}
*[dir="rtl"] select:not([multiple]) {
  background-position: 10px, 15px;
}

/* checkbox and radio button style */
input[type="checkbox"],
input[type="radio"] {
  vertical-align: middle;
  position: relative;
  width: min-content;
}

input[type="checkbox"] + label,
input[type="radio"] + label {
  display: inline-block;
}

input[type="radio"] {
  border-radius: 100%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background-color: var(--accent);
}

input[type="checkbox"]:checked::after {
  /* Creates a rectangle with colored right and bottom borders which is rotated to look like a check mark */
  content: " ";
  width: 0.18em;
  height: 0.32em;
  border-radius: 0;
  position: absolute;
  top: 0.05em;
  left: 0.17em;
  background-color: transparent;
  border-right: solid var(--bg) 0.08em;
  border-bottom: solid var(--bg) 0.08em;
  font-size: 1.8em;
  transform: rotate(45deg);
}
input[type="radio"]:checked::after {
  /* creates a colored circle for the checked radio button  */
  content: " ";
  width: 0.25em;
  height: 0.25em;
  border-radius: 100%;
  position: absolute;
  top: 0.125em;
  background-color: var(--bg);
  left: 0.125em;
  font-size: 32px;
}

/* Makes input fields wider on smaller screens */
@media only screen and (max-width: 720px) {
  textarea,
  select,
  input {
    width: 100%;
  }
}

/* Set a height for color input */
input[type="color"] {
  height: 2.5rem;
  padding:  0.2rem;
}

/* do not show border around file selector button */
input[type="file"] {
  border: 0;
}

/* Misc body elements */
hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 2rem auto;
  clear: both;
}
@media only screen and (max-width: 720px) {
  hr {
    margin: 1rem auto;
  }
}

mark {
  padding: 0px 2px;
  background-color: var(--marked);
}

mark a {
  color: #0d47a1;
}

img,
video {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

figure {
  margin: 0;
  display: block;
}

figure > img,
figure > picture > img {
  display: block;
  margin-inline: auto;
}

figcaption, p.caption {
  font-size: 1rem;
  color: var(--text-light);
  margin: 1rem 0;
}
p.caption b, figcaption b {
  color: var(--text);
}
@media only screen and (max-width: 1100px) {
  p.caption, figcaption {
    padding-bottom: 1rem;
  }
}

blockquote {
  margin-inline-start: 2rem;
  margin-inline-end: 0;
  margin: 1.5rem 0;
  padding: 0.5rem 1rem;
  border-inline-start: 0.2rem solid var(--accent);
  font-style: italic;
  font-weight: bold;
}

cite {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: normal;
}

dt {
    color: var(--text-light);
}

/* Use mono font for code elements */
code,
pre,
pre span,
kbd,
samp {
  font-family: var(--mono-font);
  color: var(--code);
}

kbd {
  color: var(--preformatted);
  border: 1px solid var(--preformatted);
  border-bottom: 3px solid var(--preformatted);
  border-radius: var(--radius);
  padding: 0.1rem 0.4rem;
}

pre {
  padding: 1rem 1.4rem;
  max-width: 100%;
  overflow: auto;
  color: var(--preformatted);
}

/* Fix embedded code within pre */
pre code {
  color: var(--preformatted);
  background: none;
  margin: 0;
  padding: 0;
}

/* Progress bars */
/* Declarations are repeated because you */
/* cannot combine vendor-specific selectors */
progress {
  width: 100%;
}

progress:indeterminate {
  background-color: var(--accent-bg);
}

progress::-webkit-progress-bar {
  border-radius: var(--radius);
  background-color: var(--accent-bg);
}

progress::-webkit-progress-value {
  border-radius: var(--radius);
  background-color: var(--accent);
}

progress::-moz-progress-bar {
  border-radius: var(--radius);
  background-color: var(--accent);
  transition-property: width;
  transition-duration: 0.3s;
}

progress:indeterminate::-moz-progress-bar {
  background-color: var(--accent-bg);
}

dialog {
  max-width: 40rem;
  margin: auto;
}

dialog::backdrop {
  background-color: var(--bg);
  opacity: 0.8;
}

@media only screen and (max-width: 720px) {
  dialog {
    max-width: 100%;
    margin: auto 1em;
  }
}

/* Superscript & Subscript */
/* Prevent scripts from affecting line-height. */
sup, sub {
  vertical-align: baseline;
  position: relative;
}

sup {
  top: -0.4em;
}

sub { 
  top: 0.3em; 
}

/* Classes for notices */
.notice {
  background: var(--accent-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

li {
  margin: 1rem 0;
}

.clearfix {
  clear: both;
}

.flex > * {
  margin-bottom: 1.5rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}
.grid > * {
  margin: 0;
}
.full {
  margin: 2rem 0;
}
@media only screen and (min-width: 1100px) {
  .full {
    margin: 2rem -80px;
  }
  .flex {
    display: flex;
    gap: 2rem;
  }
  .flex > * {
    flex: 1;
    margin: 0;
  }
  /* Make left column's article stretch to fill parent height */
  .flex.full > div:first-child {
    display: flex;
    flex-direction: column;
  }
  .flex article {
    margin: 0;
  }
  .flex.full > div:first-child > article {
    flex: 1 1 auto;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media only screen and (min-width: 1400px) {
  .full {
    margin: 2rem -220px;
  }
  .mid {
    margin: 2rem -110px;
  }
}

.jumbotron {
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
}


@media only screen and (max-width: 720px) {
  .hide-mobile {
    display: none;
  }
}

p.quote {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 1rem;
}


.center {
  text-align: center;
}

section.intro div {
  max-width: 1100px;
}
article.recent-work {
  padding: 0;
  overflow: hidden;
  margin: 0;
  background: var(--bg);
  box-shadow: var(--shadow);
  position: relative;
  cursor: pointer;
  transition: 0.25s ease;
}
footer article.recent-work {
  max-width: 540px;
  margin: 3rem auto;
}
article.recent-work:hover {
  box-shadow: var(--shadow-hover);
  transform: scale(1.017);
}
article.recent-work a:after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  content: "";
}
article.recent-work img {
  border-radius: 0;
  display: block;
}
article.recent-work div:last-child {
  padding: 1.5rem;
}
article.recent-work h2 {
  color: var(--text);
  margin: 0;
}
article.recent-work h6, h6.accent {
  color: var(--accent);
  margin-bottom: .2rem;
}
article.recent-work p {
  color: var(--text-light);
  font-size: 1.2rem;
  margin: .5rem 0 1rem;
}
@media only screen and (min-width: 720px) {
  article.recent-work div:last-child {
    padding: 2rem;
  }
  article.recent-work a {
    margin-top: 1rem;
  }
}

p.badges {
  margin: 0 0 1rem !important;
}
.badges em {
  font-size: .75rem;
  font-style: normal;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-bg);
  border-radius: var(--radius-round);
  display: inline-block;
  padding: 4px 8px;
}
h4 .badges em {
  font-family: "Inter", sans-serif;
  line-height: 1.4;
  color: #2eaa62;
  background: rgba(46, 170, 98, 0.175);
  vertical-align: middle;
}


.diagram {
  background: var(--bg-secondary);
  border-radius: var(--radius-large);
  padding: 1.5rem;
}

video {
  box-shadow: var(--shadow);
}

img.screen {
  width: 100%;
  box-shadow: var(--shadow);
}

img.avatar {
  border-radius: 100px;
  width: 3.4rem;
  float: left;
  margin-right: .75rem;
  outline: var(--avatar-outline);    
  outline-offset: -1px;
}
img.avatar + p {
  margin-top: 0;
}
.avatar-container {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.avatar-container img {
  float: none;
  margin: 0;
}
.avatar-container p {
  margin: 0;
  color: var(--text-light);
  font-size: 1rem;
}

.no-shadow {
  box-shadow: none !important;
}

.screenshot {
  background: var(--bg-secondary);
  border-radius: var(--radius-large);
  position: relative;
}
.screenshot h4 {
  text-align: center;
  font-family: var(--sans-font);
  color: var(--bg);
  background: var(--text);
  border-radius: var(--radius-round);
  padding: .7rem 1.2rem;
  display: inline-block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}
.screenshot:has(h4) {
  margin-top: 1rem;
}
.screenshot img {
  box-shadow: var(--shadow);
  display: block;
  margin: auto;
}
.screenshot.large {
  text-align: center;
}
.screenshot.large img {
  width: 100%;
  max-width: 900px;
  margin: auto;
}
.screenshot.with-tabs img {
  display: none;
}
.screenshot.with-tabs img.active {
  display: block;
}
.screenshot.space {
  padding: 2.5rem;
}
.screenshot.mobile {
  max-width: 395px;
}
.screenshot.side img {
  max-width: 950px;
}
.screenshot-collection .screenshot:first-child {
  margin-bottom: 2rem;
}
.screenshot h3 {
  margin-top: 1rem;
}
.screenshot h6 {
  color: var(--accent);
}
.screenshot p {
  font-size: var(--font-size-small);
  margin-bottom: 0;
}
@media only screen and (max-width: 1400px) {
  .screenshot.side img {
    max-width: 700px;
  }
}
@media only screen and (max-width: 1100px) {
  .screenshot.large, .screenshot.side, .screenshot.space {
    padding: 1.2rem !important;
  }
  .screenshot h4 {
    font-size: 1.1rem;
    padding: .4rem 1rem;
  }
  .screenshot.mobile {
    max-width: none;
  }
  .screenshot.side img {
    max-width: none;
    width: 100%;
  }
  .screenshot .no-shadow {
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
    max-width: none;
  }
}

.tabs {
  background: var(--bg);
  box-shadow: var(--shadow);
  border-radius: var(--radius-round);
  display: inline-block;
  margin: 2rem 0 2rem 0;
  padding: .4rem;
}
.tabs a {
  color: var(--text);
  padding: .5rem 1rem;
  display: inline-block;
  border-radius: var(--radius-round);
}
.tabs a.active {
  color: var(--bg);
  background: var(--text);
  text-decoration: none;
}

.small {
  font-size: var(--font-size-small);
}

.success {
  color: #2eaa62;
}
.warning {
  color: #fd6011;
}
.danger {
  color: #E72121;
}
.icon-large {
  font-size: 2rem;
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
  cursor: help;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.tooltip .tooltip-text {
  visibility: hidden;
  width: 124px;
  background-color: var(--text);
  font-size: .8rem;
  color: var(--bg);
  text-align: center;
  border-radius: var(--radius-round);
  padding: 5px;
  position: absolute;
  z-index: 10000;
  bottom: 100%;
  left: 50%;
  margin-left: -62px;
  opacity: 0;
  transition: 0.25s ease;
  box-shadow: var(--shadow);
}
.tooltip:hover .tooltip-text {
  visibility: visible; /* Show the tooltip */
  opacity: 1; /* Fade in */
}
.tooltip .tooltip-text:after {
  content: '';
  position: absolute;
  top: 100%; /* Position it at the bottom of the tooltip */
  left: 50%; /* Center it horizontally */
  margin-left: -5px; /* Adjust for centering */
  border-width: 5px; /* Size of the triangle */
  border-style: solid;
  border-color: var(--text) transparent transparent transparent; /* Black triangle */
}

.fa-ul {
  margin-left: 1.6em !important;
}
.fa-ul.inline {
  margin-top: -2rem;
  margin-bottom: 2rem;
  font-size: var(--font-size-small);
}
.fa-ul.inline li {
  display: inline-block;
  margin: 0 3rem 1rem 0;
}
.fa-ul.inline i {
  color: var(--accent);
}

.intro p.subtitle {
  margin: 0;
}
.intro .flex {
  align-items: center;
}

.statement {
  font-size: 2.7rem;
  line-height: 1.3;
  font-weight: 800;
  margin: 2rem 0;
}
.statement b {
  color: var(--accent);
  font-weight: 800;
}
.statement i {
  font-weight: 600;
  color: var(--text-light);
}
@media only screen and (max-width: 720px) {
  .statement {
    font-size: 1.9rem;
  }
}

.testimonials {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}
.testimonials article {
  margin: 0 2rem;
  position: relative;
  overflow: hidden;
}
.testimonials article::before {
  content: "“";
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 85px;
  line-height: 1;
  color: var(--text-light);
  opacity: 0.15;
  pointer-events: none;
}
.testimonials a {
  color: var(--text);
}
.testimonials span {
  font-size: 1rem;
}
@media only screen and (max-width: 720px) {
  .testimonials article {
    margin: 0;
  }
  .testimonials {
    gap: 2rem;
  }
}

/* Video placeholder styles */
.video-placeholder {
  background: url('img/juraj.png') left center / 240px no-repeat;
  height: 240px;
  display: flex;
  align-items: center;
}
.video-content {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--text);
  background: var(--bg);
  padding: .5rem 1rem .5rem .5rem;
  margin-left: 205px;
  border-radius: var(--radius-round);
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}
.video-content:hover {
  box-shadow: var(--shadow-hover);
  transform: scale(1.02);
  cursor: pointer;
}
.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow);
}
.video-text .title {
  font-size: 1.1rem;
  line-height: 1.5rem;
  font-weight: bold;
}
.video-text .duration {
  font-size: .9rem;
  line-height: 1.3rem;
  color: var(--text-light);
}
@media only screen and (max-width: 720px) {
  .video-placeholder {
    height: 220px;
    margin-top: 2rem !important;
  }
  .video-content {
    bottom: 1rem;
    left: 1rem;
  }
}

.portrait img {
  border-radius: var(--radius-round);
  height: 240px;
  display: block;
}

.impact {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 1.75rem 0;
}
.impact p, .impact h4, .impact .icon {
  margin: 0 !important;
}

/* Video Popover */
.video-popover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-popover.active {
  opacity: 1;
  visibility: visible;
}

.video-popover.active .video-popover-content {
  transform: scale(1);
  opacity: 1;
}

.video-popover-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(var(--bg-rgb), 0.9);
}

.video-popover-content {
  position: relative;
  z-index: 10000;
  max-width: 90vw;
  max-height: 80vh;
  width: 1000px;
  aspect-ratio: 16 / 9;
  background: var(--bg);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-hover);
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.video-popover-close {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 10001;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--text);
  border: none;
  color: var(--bg);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s ease;
  text-decoration: none;
}

.video-popover-close:hover {
  text-decoration: none;
  background: var(--text-light)
}

@media only screen and (max-width: 720px) {
  .video-popover-content {
    max-width: 95vw;
    max-height: 70vh;
  }
  
  .video-popover-close {
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }
}

@media only screen and (min-width: 1280px) {
  .half {
    max-width: calc(50% - .5rem)
  }
  .third {
    max-width: calc(33% - 1rem)
  }
  .third-smaller {
    max-width: calc(28% - 1rem)
  }
}

@media only screen and (max-width: 1100px) {
  .flex.profile {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
  }
  .flex.profile > * {
    margin: 0 !important;
  }
  .flex.profile p.subtitle {
    text-align: center;
  }
  .video-placeholder {
    height: 140px;
    width: 140px;
    background-position: center;
    background-size: 140px;
    margin: 0 !important;
  }
  .video-content {
    display: none;
  }
}

.case-study-header {
  color: white;
  text-align: center;
  padding-bottom: 0;
  margin: -2rem 0 2rem;
  padding-top: 5rem;
  position: relative;
  outline: var(--avatar-outline);
  outline-offset: -1px;
}
.case-study-header p {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.75);
}
.case-study-header.recommenders {
  background: #035f43;
}
.case-study-header.martinus {
  background: #9C1E1E;
}
.case-study-header.automation {
  background: #144FB9;
}
.case-study-header .hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 1.8rem auto 0;
}
@media only screen and (max-width: 720px) {
  .case-study-header {
    padding-top: 7rem;
  }
  .case-study-header .hero-image {
    margin-left: -1.2rem;
    margin-right: -1.2rem;
    width: calc(100% + 2.4rem);
  }
}
@media only screen and (max-width: 1500px) {
  .case-study-header .hero-image {
    max-width: 950px;
  }
}

.key-metrics {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 2.4rem auto 0;
  max-width: 950px;
}

.key-metric {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-align: left;
  flex: 1;
  min-width: 200px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  background: rgba(255, 255, 255, 0.075);
  padding: .75rem 1.3rem;
  border-radius: var(--radius-large);
  box-shadow: rgba(0, 0, 0, 0.2) 0px 18px 50px -10px;
}

.key-metric.visible {
  opacity: 1;
  transform: translateY(0);
}

.metric-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  flex-shrink: 0;
}

.metric-label {
  font-size: .9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .key-metrics {
    gap: .8rem;
    margin: 1.5rem auto 2rem;
  }
  
  .key-metric {
    min-width: 100px;
    flex-direction: column;
    text-align: center;
    gap: 0.25rem;
  }
  
  .metric-value {
    font-size: 1.4rem;
  }
  
  .metric-label {
    font-size: 0.8rem;
  }
}

.what-i-do {
  font-size: 1.1rem;
  margin: -.5rem 0 2rem;
}