/* ==========================================================================
   armin.link — Gray-inspired implementation
   Original CSS authored for Armin Baldemair's personal site.
   Visual language references FlaTheme's "Gray" template.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&family=Poppins:wght@100;200;300;400;500;600;700;800;900&family=Roboto+Mono:wght@300;400;500;600;700&display=swap");

/* --- Design tokens ------------------------------------------------------- */
:root {
  --bg:            #f2f5f8;
  --card:          #ffffff;
  --ink:           #000000;
  --ink-dim:       rgba(0,0,0,.72);
  --muted:         #838485;
  --muted-strong:  #5d5e5f;
  --placeholder:   #aaabac;
  --hairline:      rgba(0,0,0,.2);
  --line-color:    #dcdfe2;
  --shadow:        0 8px 26px 0 rgba(22,24,26,.07);
  --shadow-hover:  0 8px 32px 0 rgba(22,24,26,.11);
  --radius:        .5em;
  --radius-pill:   2em;
  --font-sans:     "Open Sans", sans-serif;
  --font-display:  "Poppins", sans-serif;
  --font-mono:     "Roboto Mono", monospace;
}

/* --- Reset overrides ----------------------------------------------------- */
html, body { width: 100%; min-height: 100%; }
body {
  position: relative;
  z-index: 1;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.74;
  letter-spacing: 0;
}
@media (max-width: 991.98px) { body { font-size: .938rem; line-height: 1.6; } }

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.3px;
}
p { margin: 0; line-height: 1.74; }
@media (max-width: 991.98px) { p { line-height: 1.6; } }
a { color: rgba(0,0,0,.7); text-decoration: none; transition: linear .1s; }
a:hover, a:focus { color: var(--ink); text-decoration: none; }
a:focus, button:focus { outline: 0; box-shadow: none; }

img { max-width: 100%; height: auto; }

/* --- Background vertical lines ------------------------------------------ */
.bg-lines {
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
}
.bg-lines .bg-line-1,
.bg-lines .bg-line-2,
.bg-lines .bg-line-3,
.bg-lines .bg-line-4 {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  border-right: 1px solid var(--line-color);
}
.bg-lines .bg-line-1 { width: 20%; }
.bg-lines .bg-line-2 { width: 40%; }
.bg-lines .bg-line-3 { width: 60%; }
.bg-lines .bg-line-4 { width: 80%; }
.bg-lines .bg-line-1::before,
.bg-lines .bg-line-2::before,
.bg-lines .bg-line-3::before,
.bg-lines .bg-line-4::before {
  content: "";
  position: absolute;
  top: -80px; right: -1px;
  width: 1px; height: 80px;
  background: linear-gradient(transparent, rgba(0,0,0,.5));
  animation: bgLine 8s linear infinite;
}
.bg-lines .bg-line-2::before { animation-delay: 2s; }
.bg-lines .bg-line-3::before { animation-delay: 4s; }
.bg-lines .bg-line-4::before { animation-delay: 6s; }
@keyframes bgLine {
  0%   { top: -80px; }
  100% { top: 100%;  }
}
@media (max-width: 991.98px) {
  .bg-lines .bg-line-1 { width: 25%; }
  .bg-lines .bg-line-2 { width: 50%; }
  .bg-lines .bg-line-3 { width: 75%; }
  .bg-lines .bg-line-4 { display: none; }
}

/* --- Typography helpers ------------------------------------------------- */
.font-family-mono      { font-family: var(--font-mono); }
.font-family-primary   { font-family: var(--font-sans); }
.font-family-secondary { font-family: var(--font-display); }
.font-small { font-size: .9em; line-height: 1.7; }
.fw-medium    { font-weight: 500; }
.fw-semi-bold { font-weight: 600; }
.line-height-100 { line-height: 1; }
.line-height-140 { line-height: 1.4; }

/* Outlined stroke-text (used for big numbers & last-name) */
.stroke-text {
  color: var(--ink);
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke-width: 1.4px;
  -webkit-text-stroke-color: var(--ink);
}
@media (max-width: 1199.98px) { .stroke-text { -webkit-text-stroke-width: 1.2px; } }

/* Small uppercase Roboto-Mono tag */
.mono-heading {
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .9em;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* Section-title with // prefix and large backdrop text */
.title-heading {
  position: relative;
  padding-top: 16px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .9em;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--ink);
}
.title-heading::before { content: "// "; padding-right: 8px; }
.title-heading::after {
  content: attr(data-backdrop-text);
  position: absolute;
  bottom: 0; left: 0;
  opacity: .15;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  text-transform: uppercase;
  line-height: .9;
  color: var(--ink);
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: var(--ink);
  pointer-events: none;
}
@media (max-width: 1199.98px) { .title-heading { padding-top: 14px; } }
@media (max-width: 991.98px)  { .title-heading::after { font-size: 2rem; } }

.link-decoration { color: rgba(0,0,0,.9); }
.link-decoration:hover, .link-decoration:focus { color: var(--ink); text-decoration: underline; }

/* --- Layout containers -------------------------------------------------- */
.container, .container-fluid { position: relative; }
.sections-wrapper { padding-bottom: 3em; }
@media (max-width: 767.98px) { .sections-wrapper { padding-bottom: 1.5em; } }

.section-box {
  background: var(--card);
  border-radius: var(--radius);
  padding: 3em;
  box-shadow: var(--shadow);
  transition: ease-out .16s;
}
.section-box:hover { box-shadow: var(--shadow-hover); }
@media (max-width: 991.98px) { .section-box { padding: 2.5em 2em; } }
@media (max-width: 767.98px) { .section-box { padding: 2em 1.5em; } }

.box-shadow     { box-shadow: 0 8px 26px 0 rgba(22,24,26,.11); transition: ease-out .16s; }
.box-shadow:hover { box-shadow: 0 8px 32px 0 rgba(22,24,26,.15); }
.border-radius  { border-radius: var(--radius); overflow: hidden; }
.border-radius-1 { border-radius: 1em; overflow: hidden; }

/* --- Header (name block) ------------------------------------------------ */
#header { padding-bottom: .5rem; }
#header .display-2 {
  font-size: 4rem;
  line-height: 1.05;
  margin: 0;
  font-weight: 600;
}
@media (max-width: 991.98px) { #header .display-2 { font-size: 2.6rem; } }

/* Social inline list in header */
ul.list-inline { margin: 0 -7px; padding: 0; list-style: none; }
ul.list-inline li { display: inline-block; padding: 0 7px; }
ul.list-inline-sm { margin: 0 -3px; }
ul.list-inline-sm li { padding: 0 3px; }

/* --- Sidebar section nav ------------------------------------------------ */
.nav-wrapper { position: sticky; top: 24px; }
.section-nav {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 1.7em 2.5em;
}
.section-nav .nav {
  display: block;
  margin: 0; padding: 0;
  list-style: none;
}
.section-nav .nav-item { width: 100%; }
.section-nav .nav-link {
  position: relative;
  display: block;
  width: 100%;
  padding: .8rem 0;
  color: rgba(255,255,255,.7);
  font-family: var(--font-mono);
  font-size: .9rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .5px;
  text-align: left;
  transition: linear .1s;
  cursor: pointer;
}
.section-nav .nav-link:hover,
.section-nav .nav-link.active { color: #fff; letter-spacing: 1px; }
.section-nav .nav-link-mobile { display: none; }

.section-nav .nav-circle {
  position: absolute;
  top: 50%; right: 0;
  transform: translateY(-50%);
  display: inline-block;
  width: 6px; height: 6px;
}
.section-nav .nav-circle::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 5px; height: 5px;
  background: #fff;
  border: 1px dashed #fff;
  border-radius: 50%;
  opacity: .7;
  transition: ease-out .2s;
}
.section-nav .nav-link:hover .nav-circle::before,
.section-nav .nav-link.active .nav-circle::before {
  opacity: 1;
  background: transparent;
  width: 30px; height: 30px;
  animation: translateRotate 10s linear infinite;
}
@keyframes translateRotate {
  0%   { transform: translate(-50%,-50%) rotate(0); }
  100% { transform: translate(-50%,-50%) rotate(360deg); }
}

/* Mobile nav: horizontal pills */
@media (max-width: 991.98px) {
  .nav-wrapper { position: relative; top: auto; height: 57px; }
  .section-nav {
    position: absolute; inset: 0 0 auto 0;
    padding: .7em;
  }
  .section-nav.fixed {
    z-index: 994;
    position: fixed;
    top: 8px; right: 12px; left: 12px;
    background: rgba(0,0,0,.9);
  }
  .section-nav .nav { display: flex; justify-content: center; }
  .section-nav .nav-item { width: auto; display: inline-block; }
  .section-nav .nav-link-desktop { display: none; }
  .section-nav .nav-link-mobile { display: inline; }
  .section-nav .nav-circle { display: none; }
  .section-nav .nav-link {
    width: 36px; height: 36px;
    padding: 0;
    text-align: center;
    line-height: 36px;
  }
  .section-nav .nav-link::before {
    content: "";
    position: absolute; inset: 0;
    transform: scale(.6);
    opacity: 0;
    border: 1px dashed #fff;
    border-radius: 50%;
    transition: ease-out .14s;
  }
  .section-nav .nav-link.active::before { transform: scale(1); opacity: 1; }
}

/* --- Menu dots button --------------------------------------------------- */
.menu-dots {
  position: relative;
  z-index: 994;
  display: inline-block;
  background: var(--ink);
  width: 50px; height: 50px;
  margin-left: 24px;
  border-radius: 0 0 var(--radius) var(--radius);
  cursor: pointer;
  border: 0;
}
.menu-dots span {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(1);
  display: inline-block;
  background: #fff;
  width: 4px; height: 4px;
  border-radius: 50%;
  transition: linear .1s;
}
.menu-dots span::before,
.menu-dots span::after {
  content: "";
  position: absolute; top: 0;
  width: 4px; height: 4px;
  background: #fff;
  border-radius: 50%;
  transition: linear .1s;
}
.menu-dots span::before { right: calc(100% + 5px); }
.menu-dots span::after  { left:  calc(100% + 5px); }
.menu-dots:hover span,
.menu-dots.active span {
  transform: translate(-50%,-50%) scale(3);
  transition-delay: .1s;
}
.menu-dots:hover span::before,
.menu-dots.active span::before { opacity: 0; right: 0; }
.menu-dots:hover span::after,
.menu-dots.active span::after  { opacity: 0; left: 0; }

/* --- Toggle menu drawer ------------------------------------------------- */
.toggle-menu {
  position: fixed;
  top: 0; right: -10px; bottom: 0;
  z-index: 995;
  width: 400px; height: 100%;
  padding: 50px 40px;
  background: var(--ink);
  color: rgba(255,255,255,.7);
  visibility: hidden; opacity: 0;
  transition: ease-out .16s;
}
.toggle-menu h1, .toggle-menu h2, .toggle-menu h3,
.toggle-menu h4, .toggle-menu h5, .toggle-menu h6 { color: #fff; }
.toggle-menu.show { right: 0; visibility: visible; opacity: 1; }
.toggle-menu .toggle-close {
  position: absolute; top: 16px; right: 16px;
  display: inline-block;
  width: 40px; height: 40px;
  background: rgba(255,255,255,.15);
  border: 0; border-radius: 50%;
  color: #fff;
  font-size: 1.33em;
  line-height: 40px; text-align: center;
  cursor: pointer;
  transition: ease-out .16s;
}
.toggle-menu .toggle-close:hover { background: rgba(255,255,255,.2); }
.toggle-menu .tm-bottom {
  position: absolute;
  right: 40px; bottom: 48px; left: 40px;
}
.toggle-menu a { color: rgba(255,255,255,.8); }
.toggle-menu a:hover, .toggle-menu a:focus { color: #fff; }
@media (max-width: 991.98px) { .toggle-menu { width: 350px; padding: 50px 30px 30px; } }
@media (max-width: 575.98px) { .toggle-menu { width: 100%; } }

/* --- Hero avatar -------------------------------------------------------- */
.hero-avatar { position: relative; display: inline-block; width: 100%; }
.hero-avatar img {
  display: block;
  width: 100%;
  max-width: 256px; max-height: 256px;
  border-radius: 50%;
  object-fit: cover;
}
.hero-avatar-text {
  position: absolute;
  bottom: 1em; left: .5em;
  padding: .5em 1em;
  background: rgba(0,0,0,.3);
  backdrop-filter: blur(5px);
  border-radius: var(--radius-pill);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .9em;
  text-transform: uppercase;
  letter-spacing: .5px;
  box-shadow: 0 8px 26px 0 rgba(22,24,26,.11);
}
.hero-avatar-text * { color: #fff !important; }

/* --- Pills & list-inline-pills ----------------------------------------- */
ul.list-inline-pills { margin: 0; padding: 0; list-style: none; }
ul.list-inline-pills li {
  display: inline-flex;
  align-items: center;
  margin: 0 7px 10px 0;
  padding: .5em 1em;
  border: 1px dashed var(--hairline);
  border-radius: var(--radius-pill);
  font-size: .9em;
  transition: linear .1s;
}
ul.list-inline-pills li i { font-size: 1.2em; }
ul.list-inline-pills li:hover { color: var(--ink); }

ul.list-circle { padding: 0; margin: 0; }
ul.list-circle li {
  list-style: none;
  position: relative;
  padding-left: 13px;
}
ul.list-circle li::before {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  background: var(--ink);
  border-radius: 50%;
  opacity: .7;
}
.toggle-menu ul.list-circle li::before { background: #fff; }

/* --- Buttons ------------------------------------------------------------ */
.button {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 14px 32px;
  background: var(--ink);
  border: 0;
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: .9em;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: ease-out .12s;
}
.button:hover { background: rgba(0,0,0,.9); color: #fff; }
.button i { margin-right: 8px; font-size: 15px; }
.button.button-outline {
  background: transparent;
  border: 1px dashed var(--ink);
  color: var(--ink);
}
.button.button-outline:hover { background: var(--ink); color: #fff; }
.button-sm { padding: 10px 22px; }
.button-lg { padding: 16px 42px; }

.button-circle {
  display: inline-block;
  width: 50px; height: 50px;
  background: var(--ink);
  border: 0; border-radius: 50%;
  color: #fff;
  line-height: 50px;
  text-align: center;
  transition: ease-out .12s;
}
.button-circle i { line-height: 50px; }
.button-circle:hover { background: rgba(0,0,0,.9); color: #fff; }
.button-circle.button-circle-sm { width: 40px; height: 40px; line-height: 40px; }
.button-circle.button-circle-sm i { line-height: 40px; }
.button-circle-outline {
  background: transparent;
  border: 1px dashed var(--ink);
  color: var(--ink);
}
.button-circle-outline:hover { background: var(--ink); color: #fff; }

/* --- Services list ------------------------------------------------------ */
.services-list { margin: 0; padding: 0; list-style: none; }
.services-list .services-item {
  border-top: 1px dashed var(--hairline);
}
.services-list .services-item:first-child { border-top: 0; }
.services-list .services-item .services-title i { color: var(--ink); }
.services-list .services-item h6 { margin: 0; }
.services-list .services-item p { margin: 0; }

@media (min-width: 1200px) {
  .services-list .services-item {
    display: flex;
    align-items: center;
    padding: 30px 0;
  }
  .services-list .services-item:first-child { padding-top: 0; }
  .services-list .services-item:last-child  { padding-bottom: 0; }
  .services-list .services-item .services-number { min-width: 90px; }
  .services-list .services-item .services-number * { margin-bottom: 0; }
  .services-list .services-item .services-title {
    min-width: 270px;
    padding-right: 36px;
  }
  .services-list .services-item .services-title * { margin-bottom: 0; }
}
@media (max-width: 1199.98px) {
  .services-list .services-item { padding: 20px 0; }
  .services-list .services-item:first-child { padding-top: 0; }
  .services-list .services-item:last-child  { padding-bottom: 0; }
  .services-list .services-item .services-number { margin-bottom: 6px; }
  .services-list .services-item .services-title  { margin-bottom: 8px; }
}
.icon-xl i  { font-size: 1.6em; }
.icon-2xl i { font-size: 1.86em; }

/* --- Resume (timeline) -------------------------------------------------- */
.resume-wrapper { position: relative; padding-left: 20px; }
.resume-wrapper::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  border-left: 1px dashed var(--hairline);
}
.resume-wrapper > i,
.resume-wrapper .resume-icon i { color: var(--ink); }
.resume-wrapper .resume-box { margin-bottom: 30px; }
.resume-wrapper .resume-box:last-child { margin-bottom: 0; }
.resume-wrapper .resume-box h5 { color: var(--ink); }
.resume-wrapper .resume-box .resume-date {
  position: relative;
  display: inline-block;
  margin-bottom: 1em;
  padding: .5em 1em;
  border: 1px dashed var(--hairline);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: .9em;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted-strong);
  transition: linear .1s;
}
.resume-wrapper .resume-box .resume-date::before {
  content: "";
  position: absolute;
  top: 50%; left: -20px;
  transform: translateY(-50%);
  width: 20px; height: 1px;
  border-top: 1px dashed var(--hairline);
}
.resume-wrapper .resume-box .resume-date::after {
  content: "";
  position: absolute;
  top: 50%; left: -23px;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  background: var(--ink);
  border-radius: 50%;
}
.resume-wrapper .resume-box:hover .resume-date { color: var(--ink); }
.resume-wrapper .resume-box p { margin-top: .3em; }
.resume-wrapper .resume-box .resume-company {
  color: var(--muted);
  font-size: .95em;
}
@media (max-width: 991.98px) {
  .resume-wrapper .resume-box { margin-bottom: 24px; }
}

/* --- Portfolio filter & grid ------------------------------------------- */
.filter ul { margin: 0; padding: 0; list-style: none; }
.filter ul li {
  position: relative;
  display: inline-block;
  margin: 0 7px 10px 0;
  padding: .5em 1em;
  border: 1px dashed var(--ink);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: .9em;
  color: var(--ink);
  cursor: pointer;
  transition: linear .1s;
}
.filter ul li:hover,
.filter ul li.active { background: var(--ink); color: #fff; }

.portfolio-grid .portfolio-item.hide { display: none; }

.portfolio-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  transform: translate3d(0,0,0);
}
.portfolio-box::after {
  content: "";
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background-image: linear-gradient(to top, rgba(0,0,0,.3), transparent);
  opacity: 0;
  transition: ease-out .16s;
  pointer-events: none;
}
.portfolio-box img {
  display: block;
  width: 100%;
  transform: scale(1);
  transition: transform .4s cubic-bezier(.165,.84,.44,1);
}
.portfolio-box .portfolio-category {
  position: absolute;
  top: 16px; right: 16px;
  padding: .5em 1em;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(5px);
  border-radius: var(--radius-pill);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .85em;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.portfolio-box .portfolio-caption {
  position: absolute;
  right: 0; bottom: 0; left: 0;
  z-index: 1;
  padding: 0 30px 24px;
  visibility: hidden;
  opacity: 0;
  margin-bottom: -6px;
  transition: ease-out .16s;
}
.portfolio-box .portfolio-caption * {
  margin: 0;
  color: #fff;
  font-weight: 600;
  letter-spacing: .5px;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #fff;
}
.portfolio-box .portfolio-caption h1 { font-size: 1.6rem; line-height: 1.1; }
.portfolio-box:hover::after { opacity: 1; }
.portfolio-box:hover img {
  transform: scale(1.04);
  filter: blur(1.5px);
}
.portfolio-box:hover .portfolio-caption {
  visibility: visible;
  opacity: 1;
  margin-bottom: 0;
}

/* Consistent tile aspect */
.portfolio-item .portfolio-box { aspect-ratio: 4 / 3; background: #f2f5f8; }
.portfolio-item .portfolio-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Forms -------------------------------------------------------------- */
input:not([type="checkbox"]):not([type="radio"]),
textarea {
  width: 100%;
  padding: 0 0 1rem;
  margin-bottom: 2rem;
  background: transparent;
  border: 1px dashed var(--hairline);
  border-top-width: 0;
  border-right-width: 0;
  border-left-width: 0;
  border-bottom-width: 1px;
  color: var(--ink);
  font: 400 14px var(--font-sans);
  box-shadow: none;
  transition: ease-out .16s;
}
input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus {
  outline: 0;
  box-shadow: none;
  border-color: var(--ink);
}
textarea { height: 140px; resize: vertical; }
::placeholder { color: var(--placeholder); }
label { font-size: 14px; }

.submit-result span {
  display: none;
  transition: ease-out .2s;
}
.submit-result span.show-result { display: block; margin-top: 30px; }
.submit-result #success { color: #32cd32; }
.submit-result #error   { color: #e32227; }

/* --- Counter & avatar masks -------------------------------------------- */
.counter { display: inline-block; }
img[class*="img-mask-avatar"] { border-radius: 50%; }
img.img-mask-avatar-sm { min-width: 70px; width: 70px; height: 70px; object-fit: cover; }

/* --- Preloader ---------------------------------------------------------- */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 998;
  width: 100%; height: 100%;
  background: var(--ink);
  pointer-events: none;
}
body.loaded::after { display: none; }
.preloader {
  position: fixed; inset: 0;
  z-index: 999;
  width: 100%; height: 100%;
  background: var(--ink);
  visibility: visible; opacity: 1;
  text-align: center;
}
.preloader div {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  display: flex;
  color: #fff;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.preloader div span {
  display: inline-block;
  padding: 0 8px;
  animation: loader 1s linear infinite;
}
.preloader div span:nth-child(2) { animation-delay: .1s; }
.preloader div span:nth-child(3) { animation-delay: .2s; }
.preloader div span:nth-child(4) { animation-delay: .3s; }
.preloader div span:nth-child(5) { animation-delay: .4s; }
.preloader div span:nth-child(6) { animation-delay: .5s; }
.preloader div span:nth-child(7) { animation-delay: .6s; }
.loaded .preloader {
  visibility: hidden; opacity: 0;
  transition: ease-out .4s;
}
@keyframes loader {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

/* --- Scroll-top --------------------------------------------------------- */
.scroll-top {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 997;
  display: none;
  width: 44px; height: 44px;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-hover);
  transition: ease-out .16s;
}
.scroll-top.active { display: flex; }
.scroll-top:hover  { background: rgba(0,0,0,.9); color: #fff; }

/* --- Footer ------------------------------------------------------------- */
#footer {
  padding: 2em 0 1em;
  text-align: center;
  color: var(--muted);
  font-size: .9em;
}
#footer a { color: var(--muted-strong); }
#footer a:hover { color: var(--ink); }
#footer .credits { margin-top: .5em; font-size: .85em; }

/* --- Typed cursor ------------------------------------------------------- */
.typed-cursor { opacity: 1; animation: typed-blink .7s infinite; color: #fff; }
@keyframes typed-blink { 50% { opacity: 0; } }

/* --- Visibility helpers ------------------------------------------------- */
[hidden] { display: none !important; }
