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

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  font: 100%/1.625 "Avenir Next", "Avenir Next LT Pro", Avenir, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-kerning: normal;
  min-height: 100vh;
  text-rendering: optimizeSpeed
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  width: 100%;
  height: auto;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* * * LAYOUT * * */
.flex {
  display: flex;
}

.grid {
  display: grid;
  gap: var(--spacing);
}

@media (max-width:343px) {
  #site-header .menu a > span {
    display: none;
  }
}
@media (max-width:374px) {
  body {
    font-size: .875rem;
  }
}

@media (max-width:767px) {
  #site-header .col {
    display: flex;
    width: 100%;
    justify-content: center;
  }
  .menu li a.active {
    background-position-y: 86%;
  }
}

@media (max-width:1023px) {  
  #site-header,
  #site-content,
  #site-form,
  #site-footer {
    padding-left: 2.5%;
    padding-right: 2.5%;
  }
  
  #site-header {
    padding-top: calc(var(--spacing)/4);
    padding-bottom: calc(var(--spacing)/4);
  }

  .flex {
    flex-direction: column;
  }
}

/* * * SPACING * * */

.page article,
.grid-cases,
.split-content .flex:nth-of-type(even),
#site-form {
  padding-top: var(--spacing);
}

#site-content {
  padding-top: calc(3 * var(--spacing));
}

.homepage #site-content {
  padding-top: calc(4 * var(--spacing));
}

#site-content {
  margin-bottom: var(--spacing);
}

article.consultant {
  padding-top: calc(var(--spacing) / 2);
}

.split-content .flex {
  margin-top: var(--spacing);
}

/* * * KORPUS STYLES * * */
:root {
  --body-bg: #fff;
  --body-color: #000;
  /*--accent-color: #d53f20;*/
  --accent-color: #e12e2e;
  --spacing: 2em;
}

@media (prefers-color-scheme: dark) {
  :root {
    --body-bg: #000;
    --body-color: #ccc;
  }
  
  .menu a {
    color: #fff;
  }
  
  .breadcrumb {
    border-top: 2px solid;
    padding-top: 1rem;
  }
  
  body>#site-footer {
    color: var(--body-color);
  }

  #site-content .button:hover,
  #site-content .button:focus {
    color: var(--body-bg);
  }

  div.faq,
  section#site-form {
    background: transparent;
  }
}

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

a {
  text-decoration: none;
  color: var(--accent-color);
  hyphens: none;
}

.button {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  background: var(--accent-color);
  padding: .333333em var(--spacing);
  border: none;
  text-transform: uppercase;
}

a:hover,
a:focus,
summary h4:hover {
  color: var(--body-color);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
  text-decoration-skip-ink: auto;
}

.button:hover {
  color: var(--body-bg);
  background: #000;
  text-decoration: none;
  transition: .1s;
}

a:focus .nudge::before,
a:hover .nudge::before,
a:active .nudge::before {
  content: "\00a0 ";
}

a:focus {
  transform: translateY(0%);
}

.sort-wrapper {
  flex-direction: row;
  align-items: center;
}

.sort-container {
  display: flex;
  align-items: center;
  gap: .5em;
  position: relative;
  color: inherit;
}

.case-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  border: thin solid currentcolor;
  border-radius: 0;
  color: currentcolor;
  cursor: pointer;
  font-family: inherit;
  font-size: 1em;
  padding: .25em 1.75em .25em .5em;
  outline: none;
}

.sort-container::after {
  content: "";
  position: absolute;
  right: .6em;
  top: 50%;
  transform: translateY(-50%);
  width: .8em;
  height: .48em;
  pointer-events: none;
  background-color: currentcolor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='black' stroke-width='1' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='black' stroke-width='1' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.case-select:focus {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.sort-container:focus-within::after {
  background-color: var(--accent-color);
}

.case-item figure {
  overflow: hidden;
}

.case-item figure img {
  -webkit-transform: scale(1);
  transform: scale(1);
  -webkit-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
}
.case-item figure:hover img,
.case-item figure:focus img {
  -webkit-transform: scale(1.07);
  transform: scale(1.07);
}

.skip {
  padding: 1.125em;
  position: absolute;
  background: var(--accent-color);
  right: 0;
  transform: translateY(-100%);
  transition: transform .3s;
  z-index: 200;
}

.menu a:link,
.menu a:visited,
a.logo:link,
a.logo:visited,
h1 a,
h2 a,
.grid-cases a {
  color: currentColor;
}

.menu a:focus,
.menu a:hover,
a.logo:focus,
a.logo:hover,
.menu a:active,
a.logo:active {
  color: var(--accent-color);
  text-decoration: none;
}

.quote {
  font-family: Palatino, "Palatino Linotype", Georgia, serif;
}

h1, h2, h3 {
  font-family: system-ui, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 500;
}

h2 {
  margin-top: 3rem;
}

h4,
h5,
.h-small,
.case-item h3 {
  font-size: 1em;
}

h5,
.jobtitle,
.faq-content strong {
  opacity: .75;
}

h4,
h5,
h6,
strong,
dt,
th,
.logo,
.menu a.active,
.button,
span[itemprop="name"],
.skip,
.field-group:focus-within label,
.h-small,
.case-item h3 {
  font-weight: 600;
}

.hero h1 {
  letter-spacing: .015em;
  padding-bottom: .8em;
  margin-bottom: 1em;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
}

caption {
  font-style: italic;
}

h3,
h4,
p,
table,
details,
dt,
.field-group,
form .button,
label,
.gallery,
main ul,
main ol {
  margin-top: 1.5rem;
}

h1 {
  font-size: 2.625em;
  line-height: 1;
}

h2 {
  font-size: 2.105263em;
  line-height: 1.2;
}

h3,
.highlight,
.quote {
  font-size: 1.263157em;
  line-height: 1.5em;
}

.grid-cases h3 {
  margin-top: 1em;
}

h4+p,
blockquote .quote,
summary h4,
#site-footer ul,
#site-form h2,
.jobtitle,
.mt0 {
  margin-top: 0;
}

h1, h2, h3,
.split-content p:first-of-type {
  text-box: trim-start cap text;
}

summary {
  width: fit-content;
  cursor: pointer;
  color: var(--accent-color);
}

summary::marker {
  content: "▶";
  font-size: .625em;
}

details[open] summary::marker {
  content: "▼";
}

summary h4 {
  display: inline;
  color: var(--body-color);
  padding-left: .25em;
}

[tabindex="-1"]:focus {
  outline: none;
}

dt,
dd {
  display: inline;
}

dt::after {
  content: ": ";
}

dd::after,
dt::before {
  content: "\a";
  white-space: pre;
}

table {
  width: 100%;
  caption-side: bottom;
}

table,
th,
td {
  border: thin solid var(--body-color);
  border-collapse: collapse;
}

th,
td {
  padding: .5em 1em;
}

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

.finance tr>td:last-child {
  text-align: right;
}

table ul li {
  list-style-type: "– ";
}

label {
  display: block;
}

fieldset {
  border: none;
  padding: 0;
}

input,
textarea {
  background: transparent;
  color: var(--body-color);
  border: .15em solid var(--body-color);
  padding: .25em;
}

input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 .25em #777;
}

input[type="checkbox"] {
  float: left;
  display: grid;
  place-content: center;
  font: inherit;
  color: currentColor;
  width: 1.15em;
  height: 1.15em;
  border-radius: .15em;
  padding: 0;
  margin: .275em .275em 0 0;
  transform: translateY(-0.075em);
  -webkit-appearance: none;
  appearance: none;
}

input[type="checkbox"]::before {
  content: "";
  width: .65em;
  height: .65em;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em currentcolor;
}

input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.group-checkboxes label {
  float: left;
  margin: 0;
}

.field-input {
  width: 100%;
  max-width: 40rem;
}


textarea {
  width: 100%;
  max-width: 60rem;
}

#site-header {
  background: #000;
  color: #fff;
  min-height: calc(var(--spacing) * 2);
  z-index: 100;
  transition: all .2s ease;
  position: fixed;
  top: 0;
  width: 100%;
}

#site-header.hide {
  top: calc(var(--spacing) * -3);
}

.logo {
  display: block;
  line-height: 0;
  padding: calc(var(--spacing)/2) calc(var(--spacing)/2) calc(var(--spacing)/4);
}

.logo:hover .logofill {
  fill: var(--accent-color);
}

ol,
ul {
  padding-left: 1.5em;
  margin: 0;
}

.menu {
  padding: 0;
  margin: 0;
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.menu li {
  list-style-type: none;
}

.menu a {
  display: inline-block;
  line-height: 2.5em;
}

.menu a.active {
  color: var(--accent-color);
  background: linear-gradient(var(--accent-color), var(--accent-color)) center 76% no-repeat transparent;
  background-size: 100% 2px;
}

.breadcrumb {
  margin: 1.5rem 0 2em;
  padding-bottom: 1rem;
  border-bottom: 2px solid;
  border-image-slice: 1;
  border-image-source: linear-gradient(90deg in oklch, #fad720 0%, #fb1340 50%, #d427f7 95%);
}

.breadcrumb ul.crumbs {
  padding-left: 0;
  margin: 0;
}

.breadcrumb ul.crumbs li {
  list-style-type: none;
  display: inline-block;
}

.breadcrumb li+li::before {
  content: '/';
  padding-left: .4em;
  padding-right: .5em;
}

.page-menu ul {
  list-style-type: none;
  padding: 0;
}

.page-menu li {
  display: inline-block;
  margin: .75em .5em 0 0;
}

.page-menu .button {
  padding-left: 1.5em;
  padding-right: 1.5em;
}

.link-icon {
  width: 1em;
  vertical-align: middle;
  margin-top: -.25em;
  margin-right: .25em;
}

.view-more {
  text-align: center;
}

.button-hollow {
  background: transparent;
  border: medium solid var(--accent-color);
  color: var(--accent-color);
}

.button-hollow:hover,
.button-hollow:focus {
  background: var(--accent-color);
}

.hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.grid-gallery {
  grid-template-columns: 1fr 1fr;
}

section > header {
  width: 100%;
}

q,
.quote {
  quotes: "»" "«" "‘" "’";
}

q::before,
.quote::before {
  content: open-quote;
}

q::after,
.quote::after {
  content: close-quote;
}

blockquote {
  padding: var(--spacing);
  border: medium solid var(--body-color);
  margin: 3rem 0;
}

blockquote .quote {
  font-size: 1.5em;
}

blockquote footer {
  margin-top: 1em;
}

blockquote cite,
.jobtitle {
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .025em;
}

blockquote cite::before {
  content: "\2014";
}

abbr {
  text-decoration: none;
}

code,
pre {
  font-size: 1rem;
  font-family: Monaco, monospace;
}

.small-caps {
  font-variant: small-caps;
}

.faq {
  background: #f5f5f5;
  border: thin solid;
  padding: .5em 1.5em 1.5em;
  margin: 1.5em 0 0;
}

.faq-content {
  padding-left: 1em;
}

.sort-wrapper,
.view-more,
.epilogue {
  margin-top: var(--spacing);
}

#site-form,
#site-footer {
  margin-bottom: 0;
  background: #000;
  color: #fff;
  padding-top: var(--spacing);
  padding-bottom: var(--spacing);
}

#site-form {
  background: #f5f5f5;
  color: var(--body-color);
}

#site-footer ul {
  padding: 0;
  list-style-type: none;
}

#site-footer small {
  font-size: 1em;
}

#site-footer a:hover,
#site-footer a:focus {
  color: currentcolor;
}

@media (min-width:768px) {
  .sort-wrapper {
    justify-content: flex-end;
  }
  .grid-cases {
    grid-template-columns: 1fr 1fr;
    column-gap: calc(var(--spacing) / 2);
    row-gap: var(--spacing);
    transition: opacity .2s ease;
  }
  #site-header .col {
    align-self: center;
  }
  .menu {
    justify-content: normal;
    gap: 2em;
  }
}

@media (min-width: 1024px) {
  :root {
    --spacing: 4em;
  }

  body {
    font-size: 1.1875rem;
    line-height: 1.68421;
  }

  #site-header,
  #site-content,
  #site-form,
  #site-footer {
    padding-left: 5%;
    padding-right: 5%;
  }
  
  #site-header {
    min-height: var(--spacing);
    align-items: center;
  }
  
  #site-header .col-third {
    display: flex;
    align-items: center;
  }
  
  #site-content {
    padding-top: var(--spacing);
  }
  .homepage #site-content {
    padding-top: calc(2 * var(--spacing));
  }
  .logo {
    padding: 0;
  }
  .menu a {
    line-height: 4em;
    font-weight: 400;
  }
  
  .grid-cases {
    padding-top: calc(var(--spacing) / 2);
  }

  .grid-page {
    display: grid;
    grid-template-columns: 1fr 50%;
    column-gap: 2em;
  }

  .grid-pull {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .flex {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2em;
  }

  .col-half {
    width: calc(1/2 * 100% - 1em);
  }

  .col-twothirds {
    width: calc(2/3 * 100% - 1em);
  }

  .col-third {
    width: calc(1/3 * 100% - 1.3334em);
  }

  .col-sixth {
    width: calc(1/6 * 100% - 1em);
  }

  .grid-cases {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .breadcrumb {
    margin-top: 1em;
  }
  
  .sort-wrapper,
  .gallery,
  .consultant h3,
  .split-content .col p:first-of-type {
    margin-top: 0;
  }

  #skills ul {
    margin-bottom: var(--spacing);
  }
}

@media (min-width:1621px) {

  #site-header,
  #site-content,
  #site-form,
  #site-footer {
    padding-left: 7.5%;
    padding-right: 7.5%;
  }
}

@media (min-width:2500px) {
  body {
    font-size: 1.5rem;
    line-height: 1.666666;
  }

  #site-header,
  #site-content,
  #site-form,
  #site-footer {
    padding-left: 12.5%;
    padding-right: 12.5%;
  }
  
  .logo svg {
    width: 123px;
    height: 24px;
  }
}

@media (min-width:3200px) {

  #site-header,
  #site-content,
  #site-form,
  #site-footer {
    padding-left: 20%;
    padding-right: 20%;
  }
}