/* Additions on top of site.css (the old Webflow page's own styles).
   Here: the fluid root size the old page set inline, what replaced the Webflow runtime
   (FAQ on <details>, form states), and the new "Live projects" block. */

html { font-size: calc(0.625rem + 0.41666666666666663vw); scroll-behavior: smooth; }
@media screen and (max-width: 1920px) { html { font-size: calc(0.625rem + 0.41666666666666674vw); } }
@media screen and (max-width: 1440px) { html { font-size: calc(0.002182628062360914rem + 1.108685968819599vw); } }
@media screen and (max-width: 991px) { html { font-size: calc(0.758056640625rem + 0.390625vw); } }
@media screen and (max-width: 479px) { html { font-size: calc(0.7494769874476988rem + 0.8368200836820083vw); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background-color: var(--mine);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
*[tabindex]:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 0.125rem solid #66a9d6; outline-offset: 0.125rem;
}
.w-richtext > :first-child { margin-top: 0 !important; }
.w-richtext > :last-child { margin-bottom: 0 !important; }
.hide { display: none !important; }
@media screen and (max-width: 991px) { .hide-tablet { display: none !important; } }
@media screen and (max-width: 767px) { .hide-mobile-landscape { display: none !important; } }
@media screen and (max-width: 479px) { .hide-mobile { display: none !important; } }

/* ---- Hero ---- */
/* The headline and the studio strip stay above the scattered cards */
.hero-headline, .hero-heder-etd { z-index: 3; }
.hero-heder-etd { pointer-events: none; }
.hero-heder-etd a, .hero-heder-etd .worker { pointer-events: auto; }
.hero-headline h1.paragraph-large { margin: 0; text-align: left; font-family: inherit; font-weight: 500; line-height: 120%; }
.worker_info-wrapper .paragraph-large { margin-top: 0; }
.worker { color: inherit; text-decoration: none; }
@media screen and (max-width: 767px) {
  .hero-headline { inset: 1.25rem 4.5rem auto 1.2rem; }
  .hero-headline h1.paragraph-large { font-size: 1.25rem; }
}

/* ---- About: the old page added the bottom padding in Webflow ---- */
.about-etd-available .h3-etd { margin-top: 0; margin-bottom: 1.5rem; }
.scramble-list { padding-left: 1.25rem; margin: 0 0 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.scramble-list .paragraph-large { margin: 0; }

/* ---- FAQ on <details>: content is in the HTML, the browser opens and closes it ---- */
.faq-etd-item > summary { list-style: none; cursor: pointer; }
.faq-etd-item > summary::-webkit-details-marker { display: none; }
.faq-etd-toggle .paragraph-medium { flex: 1; min-width: 0; }
.faq-etd-icon { position: relative; flex: none; }
.faq-etd-icon::before, .faq-etd-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 38%; height: 2px; border-radius: 2px;
  background-image: linear-gradient(146deg, #66a9d6, var(--purple));
  transform: translate(-50%, -50%); transition: transform 0.3s ease;
}
.faq-etd-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-etd-item[open] .faq-etd-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-etd-item[open] > .faq-etd-toggle { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.faq-etd-answer-wrapper .paragraph-medium { margin: 0; }

/* ---- Form ---- */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.radio_wrap { flex-wrap: wrap; row-gap: 0.75rem; }
.w-form-done.is-shown, .w-form-fail.is-shown { display: block; }
.success-message-etd { background: transparent; text-align: left; padding: 0; }

/* ---- Live projects ---- */
.works-sub { margin-top: 1rem; margin-bottom: 0; }
.works-ours, .works-rest { display: grid; gap: 1.6rem; }
.works-ours { grid-template-columns: 1fr 1fr; margin-bottom: 1.6rem; }
.works-rest { grid-template-columns: repeat(4, 1fr); }
.work-item {
  display: flex; flex-direction: column; min-width: 0;
  border: 1px solid #ffffff24; border-radius: 0.63rem; overflow: hidden;
  background-color: #ffffff08; transition: border-color 0.3s, background-color 0.3s;
}
.work-item:hover { border-color: var(--border); background-color: #4454fe14; }
.work-item.is-ours { border-color: var(--border); background-image: linear-gradient(177deg, #07b3ff33, #fff0 60%); }
.work-item_cover { display: block; aspect-ratio: 1.62; overflow: hidden; background-color: #0b232a; }
.work-item_cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.5s ease; }
.work-item:hover .work-item_cover img { transform: scale(1.03); }
.work-item_body { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.5rem; flex: 1; }
.works-rest .work-item_body { padding: 1.1rem 1.2rem 1.25rem; }
.works-rest .h3-etd.is-project { font-size: 1.35rem; }
.work-item_tag {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.19rem; text-transform: uppercase;
  background-image: linear-gradient(146deg, #66a9d6, var(--purple) 64%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.work-item .h3-etd { margin: 0; font-family: Philosopher, sans-serif; }
.work-item_text { margin: 0; opacity: 0.8; line-height: 150%; }
.work-item_tech { margin: 0; font-size: 0.875rem; opacity: 0.55; }
.work-item_links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: auto; padding-top: 0.5rem; }
.work-item_live {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.2rem; border-radius: 0.3rem; color: var(--white); text-decoration: none;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12rem; text-transform: uppercase;
  background-image: linear-gradient(146deg, #66a9d6, var(--purple) 53%);
  transition: box-shadow 0.3s;
}
.work-item_live:hover { box-shadow: inset 0 0 0 100px #00000026; }
.works-rest .work-item_live { padding: 0.5rem 0.9rem; font-size: 0.7rem; letter-spacing: 0.08rem; }
.work-item_more { color: var(--white); opacity: 0.7; font-size: 0.9rem; text-decoration: underline; text-underline-offset: 0.2em; }
.work-item_more:hover { opacity: 1; }
@media screen and (max-width: 991px) {
  .works-rest { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 767px) {
  .works-ours, .works-rest { grid-template-columns: 1fr; gap: 1.25rem; }
  .works-ours { margin-bottom: 1.25rem; }
}

/* ---- Privacy page ---- */
.legal { max-width: 46rem; margin: 0 auto; display: flex; flex-direction: column; gap: 2rem; }
.legal .h2-etd { text-align: left; }
.legal .w-richtext { font-size: 1.1rem; line-height: 160%; color: #ffffffd9; }
.legal .w-richtext h3 { font-family: Philosopher, sans-serif; font-weight: 400; font-size: 1.5rem; margin: 1.75rem 0 0.5rem; color: var(--white); }
