/* Nassi Mandalas — layout after simonemargio.dev, type & colour from CV + portfolio */

:root {
  --ink: #231f20;
  --blue: #1e5e9e;
  --blue-soft: #2f6fb5;
  --warm: #f2f0eb;
  --warm-2: #f2f2f2;
  --grey: #ccd1d0;
  --muted: rgba(35, 31, 32, 0.45);
  --line: rgba(35, 31, 32, 0.18);
  --white: #ffffff;
  --black: #0d0c0c;
  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-condensed: "League Gothic", "Arial Narrow", sans-serif;
  --font-body: "Open Sans", Arial, Helvetica, sans-serif;
  --max: 1440px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --phi: 1.6180339887;
}

html {
  scroll-padding-top: 72px;
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

* {
  margin: 0;
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background-color: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  margin: 10px 0;
  padding-left: 1.1rem;
}

li {
  margin: 8px 0;
}

/* ---------- Navigation ---------- */

.navigation-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 9998;
  margin-top: 2vh;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: transparent;
  z-index: 9999;
}

.progress-bar {
  height: 80%;
  background-color: var(--ink);
  width: 0%;
  transition: width 0.1s ease-out;
}

@media (min-width: 768px) {
  .progress-container {
    display: none;
  }
}

.navigation-wrapper {
  margin-bottom: 1vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: var(--max);
}

@media (max-width: 767px) {
  .navigation-wrapper {
    display: none;
  }
}

.navigation-wrapper .navigation-title,
.navigation-mobile .navigation-title {
  margin: 5px 0;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  border: none;
  background: none;
}

.navigation-wrapper .navigation-title h1 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.navigation-wrapper nav {
  display: flex;
  align-items: center;
}

.navigation-wrapper nav a {
  margin: 5px 10px;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.2s ease-out;
  opacity: 0.5;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.navigation-wrapper nav a:hover,
.navigation-wrapper nav a.is-active {
  opacity: 1;
}

.navigation-mobile {
  width: 90%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

@media (min-width: 768px) {
  .navigation-mobile {
    display: none;
  }
}

.navigation-mobile .navigation-title h1 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dd-input {
  display: none;
}

.dropdown {
  display: inline-block;
  position: relative;
}

.dropdown,
.dd-button,
.dd-menu-element-li {
  outline: none;
  background-color: transparent !important;
  -webkit-tap-highlight-color: transparent;
  border: none;
}

.dd-button {
  display: inline-block;
  padding: 10px 18px;
  cursor: pointer;
  white-space: nowrap;
  color: var(--ink);
  font-size: 1.15rem;
}

.dd-menu {
  right: 0 !important;
  left: auto !important;
  text-align: center !important;
  transform: none !important;
  position: absolute;
  top: 100%;
  border-radius: 20px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  list-style-type: none;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, visibility 0.4s;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(35, 31, 32, 0.08);
  min-width: 150px;
  max-width: 200px;
}

.dd-input:checked ~ .dd-menu {
  max-height: 280px;
  opacity: 1;
  visibility: visible;
}

.dd-menu-element {
  text-decoration: none !important;
  color: var(--ink);
  transition: transform 0.15s ease;
  display: inline-block;
}

.dd-menu-element-li {
  padding: 10px 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.1s ease;
}

.dd-menu-element-li:hover {
  background-color: var(--warm-2);
}

/* ---------- Links & buttons ---------- */

.underlink {
  color: var(--ink);
  position: relative;
  text-decoration: none;
}

.underlink::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  border-radius: 4px;
  background-color: var(--ink);
  bottom: 0;
  left: 0;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.3s ease-in-out;
}

.underlink:hover::before {
  transform-origin: left;
  transform: scaleX(1);
}

a.fancy-link {
  position: relative;
  text-decoration: none;
  display: inline-block;
  color: var(--ink);
  transition: color ease 0.3s;
}

a.fancy-link::before,
a.fancy-link::after {
  content: "";
  position: absolute;
  background-color: var(--ink);
  z-index: -1;
  height: 1px;
}

a.fancy-link::before {
  width: 0%;
  left: 0;
  bottom: 0;
  transition: width ease 0.4s;
}

a.fancy-link::after {
  width: 100%;
  left: 0;
  bottom: 0;
  transition: all ease 0.6s;
}

a.fancy-link:hover::before {
  width: 100%;
}

a.fancy-link:hover::after {
  left: 100%;
  width: 0%;
  transition: all ease 0.2s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  max-width: 260px;
  width: auto;
  flex-shrink: 0;
  margin-top: 10px;
  padding: 0 18px;
  height: 40px;
  border: none;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(-45deg, #1e5e9e, #3b89d7, #2de5eb, #1e5e9e);
  background-size: 300% 100%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  transition: all 0.2s ease-out;
  animation: anime 16s linear infinite;
}

.btn.ink {
  background: var(--ink);
  animation: none;
}

.btn:hover,
.btn:active {
  transform: scale(1.05);
}

.btn:active {
  transform: scale(1);
}

.title-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  width: 100%;
}

.download-row-home {
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--max);
  margin: 3vh auto 0;
}

.file-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 18px;
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--max);
  margin: 2.5vh auto 0;
}

.file-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  line-height: 1;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.file-link:hover {
  border-bottom-color: var(--ink);
}

.file-link-label {
  letter-spacing: 0.01em;
}

.file-link-dl {
  border-bottom: none;
  padding: 2px;
  color: var(--ink);
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.file-link-dl:hover {
  opacity: 1;
  transform: translateY(2px);
  border-bottom-color: transparent;
}

.dl-icon {
  display: block;
}

.view-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 14px;
  width: 100%;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.98rem;
}

.contact-hint {
  display: none;
}

.email-row {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff !important;
  text-decoration: none !important;
  width: fit-content;
  max-width: 100%;
}

.email-icon {
  flex-shrink: 0;
  color: #fff;
  opacity: 0.9;
}

.email-row:hover {
  opacity: 0.85;
}

.contact-container .contact-wrapper h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.05rem, 3.6vw, 2.6rem);
  line-height: 1.1;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  transition: all 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
  overflow-wrap: normal;
  word-break: normal;
  color: #fff;
}

/* ---------- Work history timeline ---------- */

.history {
  width: 100%;
  margin-top: 0;
}

.history .section-inner {
  max-width: 56rem;
}

.history-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  position: relative;
}

.history-list::before {
  content: "";
  width: 3px;
  height: 100%;
  background: var(--ink);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.history-item {
  position: relative;
  width: 100%;
  margin-bottom: 2.4rem;
  display: block;
}

.history-item:last-child {
  margin-bottom: 0.25rem;
}

.history-marker {
  position: absolute;
  top: 0.35rem;
  left: 50%;
  margin-left: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  z-index: 1;
}

.history-side {
  width: 42%;
  max-width: 42%;
}

.history-item:nth-child(odd) .history-side {
  margin-right: auto;
  margin-left: 0;
  text-align: right;
  padding-right: 1.75rem;
}

.history-item:nth-child(even) .history-side {
  margin-left: auto;
  margin-right: 0;
  text-align: left;
  padding-left: 1.75rem;
}

.history-role {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0;
}

.history-place {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.88rem;
  margin: 0.2rem 0 0;
}

.history-note {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0.4rem 0 0;
  opacity: 0.75;
}

.history-date {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 0.3rem;
}

.history-item {
  margin-bottom: 2.8rem;
}

.history-role {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0;
}

.history-place {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.95rem;
  margin: 0.15rem 0 0;
}

.history-note {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0.35rem 0 0;
  opacity: 0.8;
}

@media (max-width: 799px) {
  .history-list::before {
    left: 10px;
    transform: none;
  }

  .history-marker {
    left: 10px;
    margin-left: -6px;
  }

  .history-side,
  .history-item:nth-child(odd) .history-side,
  .history-item:nth-child(even) .history-side {
    width: auto;
    max-width: none;
    margin-left: 2rem;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
  }
}

.home-about,
.history {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.section-inner {
  width: calc(100% - var(--gutter) * 2);
  max-width: 42rem;
  margin: 0 auto;
  text-align: left;
}

.home-about .section-inner,
.history .section-inner {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.home-about {
  margin-top: 0.5rem;
}

.home-about p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1rem, 1.1vw + 0.75rem, 1.2rem);
  line-height: 1.65;
  text-align: left;
  max-width: none;
}

.home-about .section-inner {
  max-width: 52rem;
}

.home-about p + p {
  margin-top: 1rem;
}

.slash-label {
  font-family: var(--font-condensed);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  margin-bottom: 0.85rem;
  text-align: left;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}

.site-header .header-container {
  margin-top: 0.5vh;
}

.navigation-wrapper .navigation-title,
.navigation-mobile .navigation-title {
  min-width: 1rem;
}

.contact-container .contact-wrapper {
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--max);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  text-align: left;
}

.navigation-wrapper,
.navigation-mobile {
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.about-container .about-wrapper,
.work-container .work-wrapper,
.work-container .grid-wrapper,
.tagline-container .tagline-wrapper,
.page-footer-meta {
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

@keyframes anime {
  0% {
    background-position: 0;
  }
  50% {
    background-position: 100%;
  }
  100% {
    background-position: 0;
  }
}

/* ---------- Header / hero ---------- */

.header-container {
  width: 100%;
  margin-top: 1vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

.header-container .header-wrapper {
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--max);
  margin: 0 auto;
  overflow: hidden;
}

.header-container .header-title {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-size: 3rem;
  text-align: left;
}

.header-container .header-title .title-name {
  font-size: calc(1em / 1.6180339887);
  line-height: 1.05;
  text-align: left;
}

.header-container .header-title .title-role {
  font-size: 1em;
  line-height: 1.02;
  text-align: left;
}

@media (min-width: 768px) {
  .header-container .header-title {
    font-size: 4.5rem;
  }
}

@media (min-width: 1024px) {
  .header-container .header-title {
    font-size: 5.4rem;
  }
}

@media (min-width: 1280px) {
  .header-container .header-title {
    font-size: 6.1rem;
  }
}

.header-container .header-title .title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
}

.header-container hr,
.header-rule {
  margin: 2.2vh 0 0;
  border: none;
  border-top: 2px solid var(--ink);
  opacity: 1;
  width: 100%;
}

.connector-zone {
  position: relative;
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--max);
  margin: 0 auto;
  min-height: 280px;
}

.squiggle-svg {
  position: absolute;
  left: 0;
  top: -2px;
  width: 100%;
  height: calc(100% + 2px);
  color: var(--ink);
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.squiggle-path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw-squiggle 1.8s ease-out 0.15s forwards;
}

@keyframes draw-squiggle {
  to {
    stroke-dashoffset: 0;
  }
}

.connector-content {
  position: relative;
  z-index: 1;
  padding-top: 1.5rem;
}

.history {
  position: relative;
  z-index: 1;
}

.history-list {
  margin-top: 0;
}

.history-list::before {
  top: -2px;
}

@media (min-width: 768px) {
  .connector-zone {
    min-height: 360px;
  }
}

@media (min-width: 1024px) {
  .connector-zone {
    min-height: 440px;
  }
}

.header-container .header-title .title .title-gradient {
  background: linear-gradient(-45deg, #ffa63d, #ff3d77, #338aff, #3cf0c5);
  background-size: 300% 100%;
  font-family: var(--font-display);
  font-weight: 400;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-animation: animated_text 10s ease-in-out infinite;
  -webkit-animation: animated_text 10s ease-in-out infinite;
  animation: animated_text 10s ease-in-out infinite;
}

@keyframes animated_text {
  0% {
    background-position: 0;
  }
  50% {
    background-position: 100%;
  }
  to {
    background-position: 0;
  }
}

.header-container .header-wrapper,
.tagline-container .tagline-wrapper,
.home-about {
  overflow-wrap: break-word;
  min-width: 0;
}

.lineup {
  margin-top: 10px;
  animation: 1s anim-lineup ease-out;
}

.linemid {
  animation: 1.5s anim-lineup ease-out;
}

.linebottom {
  animation: 2s anim-lineup ease-out;
}

@keyframes anim-lineup {
  0% {
    opacity: 0;
    transform: translate3d(-20px, 125px, 0);
  }
  20% {
    opacity: 0;
  }
  50% {
    opacity: 1;
    transform: translateY(0%);
  }
  100% {
    opacity: 1;
    transform: translateY(0%);
  }
}

/* ---------- Work list ---------- */

.work-container {
  width: 100%;
  margin-top: 4vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.work-container .work-wrapper {
  width: 90%;
  max-width: var(--max);
  overflow: hidden;
}

.work-container .work-wrapper h1,
.section-label {
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.work-container .grid-wrapper {
  width: 90%;
  max-width: var(--max);
  margin-top: 5vh;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  min-width: 0;
}

.work-container .project-link {
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
  max-width: 100%;
  display: block;
}

.work-container .content-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid rgba(35, 31, 32, 0.1);
  padding-bottom: 10px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease-out;
  min-width: 0;
  gap: 12px;
}

.work-container .content-wrapper:hover {
  border-bottom-color: var(--ink);
}

.work-container .content .project-item-heading {
  cursor: pointer;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.45rem, 4vw, 3.4rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
}

.work-container .content .project-item-subheading {
  cursor: pointer;
  margin: 0;
  opacity: 0.4;
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(0.78rem, 1.5vw, 1.05rem);
  line-height: 1.55;
  overflow-wrap: break-word;
  word-break: break-word;
}

.work-container .content {
  min-width: 0;
  flex: 1;
}

.work-container .work-wrapper {
  width: 90%;
  max-width: var(--max);
  overflow: hidden;
  min-width: 0;
}

.work-container .icon {
  font-family: var(--font-condensed);
  font-size: clamp(2rem, 5vw, 3.5rem);
  opacity: 0.18;
  line-height: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.work-container .content-wrapper:hover .icon {
  opacity: 0.55;
  transform: translateX(4px);
}

@media (max-width: 767px) {
  .work-container .content-wrapper .icon {
    display: none;
  }
}

#index-more-button {
  color: rgba(35, 31, 32, 0.35);
  text-decoration: none;
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  width: max-content;
  max-width: max-content;
}

#index-more-button:hover {
  color: var(--ink);
}

/* ---------- Tagline ---------- */

.tagline-container {
  width: 100%;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .tagline-container {
    margin-top: 40px;
  }
}

.tagline-container .tagline-wrapper {
  width: 90%;
  max-width: var(--max);
}

.tagline-container .tagline-elem {
  margin: 0;
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.8vw, 2.2rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: 100%;
  overflow-wrap: break-word;
}

.tagline-container .tagline-elem.slash {
  font-family: var(--font-condensed);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Contact ---------- */

.contact-container {
  width: 100%;
  max-width: 100%;
  min-height: 0;
  margin-top: 6vh;
  padding: 2.75rem 0 2.5rem;
  background-color: var(--black);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-container .contact-wrapper {
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--max);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-container .contact-wrapper h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.05rem, 3.6vw, 2.6rem);
  line-height: 1.1;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  transition: all 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
  overflow-wrap: normal;
  word-break: normal;
}

@media (max-width: 480px) {
  .contact-container .contact-wrapper h1 {
    font-size: clamp(1.05rem, 5.6vw, 1.6rem);
    letter-spacing: 0;
  }
}

.contact-container .contact-wrapper h1:hover {
  transform: skewX(8deg);
}

.contact-container .contact-wrapper h2 {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
}

.contact-container .contact-wrapper nav {
  display: flex;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 0;
  gap: 8px 0;
}

.contact-container .contact-wrapper nav li {
  list-style: none;
  margin-left: 15px;
  margin-top: 0;
  margin-bottom: 0;
}

.contact-container .contact-wrapper nav li:first-child {
  margin-left: 0;
}

.contact-container .contact-wrapper nav li a {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  transition: all 0.2s ease-in-out;
  opacity: 0.85;
}

.contact-container .contact-wrapper nav li a:hover {
  opacity: 1;
}

.contact-container .footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.15rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-container .footer-nav li {
  display: inline-flex;
  align-items: center;
  margin: 0 !important;
}

.contact-container .footer-nav .footer-dl {
  display: inline-flex;
  align-items: center;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-container .footer-nav .footer-dl:hover {
  opacity: 1;
  transform: translateY(2px);
}

.contact-container .footer-nav .social-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-container .footer-nav .social-icon:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.contact-container .footer-nav .social-icon svg {
  display: block;
}

.contact-container .footer-nav .footer-download,
.contact-container .footer-nav .footer-download-icon {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  opacity: 0.82;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-container .footer-nav .footer-download:hover,
.contact-container .footer-nav .footer-download-icon:hover {
  opacity: 1;
}

.contact-container .footer-nav .footer-download-icon {
  margin-left: 0.55rem;
}

/* ---------- About / page content ---------- */

.about-container {
  width: 100%;
  max-width: 100%;
  margin-top: 3vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.about-container .about-wrapper {
  width: 90%;
  max-width: var(--max);
  min-width: 0;
}

.about-container .about-wrapper .title-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.about-container .about-wrapper .title-wrapper .title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 6vw, 5.5rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  min-width: 0;
  max-width: 100%;
}

.contenttextwebpage {
  text-align: left;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.6vw + 0.9rem, 1.15rem);
  line-height: 1.65;
  width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
}

.cv-sheet {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.cv-grid {
  min-width: 0;
}

.cv-block {
  min-width: 0;
  overflow-wrap: break-word;
}

.content-elem {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-top: 0.85rem;
  border-top: 2px solid var(--ink);
}

.content-elem:first-of-type {
  margin-top: 0;
}

/* ---------- CV sheet (actual CV style, web rework) ---------- */

.cv-sheet {
  width: 100%;
  background: var(--white);
}

.cv-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 860px) {
  .cv-header {
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
    gap: 2rem;
  }
}

.cv-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
}

.cv-role {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.55rem;
}

.cv-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.1rem;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.95rem;
  overflow-wrap: break-word;
  min-width: 0;
  max-width: 100%;
}

.cv-header {
  min-width: 0;
}

.cv-name {
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .about-container .about-wrapper .title-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .about-container .about-wrapper .title-wrapper .title {
    font-size: clamp(1.9rem, 11vw, 2.6rem);
  }

  .btn {
    width: auto;
    min-width: 110px;
    margin-top: 4px;
  }

  .cv-name {
    font-size: clamp(2.4rem, 13vw, 3.2rem);
  }

  .cv-entry-title,
  .cv-subtitle,
  .cv-stack-list .label {
    overflow-wrap: break-word;
  }

  .content-elem,
  .cv-section-title {
    font-size: clamp(1.25rem, 6vw, 1.7rem);
  }

  .contact-container .contact-wrapper nav li {
    margin-left: 0;
    margin-right: 14px;
  }

  .cv-contact-row {
    flex-direction: column;
    gap: 0.35rem;
  }
}

.cv-contact-row a {
  color: var(--ink);
  text-decoration: none;
}

.cv-contact-row a:hover {
  color: var(--blue);
}

.cv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 3rem;
}

@media (max-width: 899px) {
  .cv-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .cv-col {
    display: contents;
  }

  .cv-block {
    margin-bottom: 0;
  }

  #about {
    order: 1;
  }

  #experience {
    order: 2;
  }

  #education {
    order: 3;
  }

  #achievements {
    order: 4;
  }

  #interests {
    order: 5;
  }

  #competencies {
    order: 6;
  }

  #additional {
    order: 7;
  }

  .cv-social {
    order: 8;
  }

  .cv-portfolio-cta {
    order: 9;
  }
}

@media (min-width: 900px) {
  .cv-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

.cv-block {
  min-width: 0;
}

.cv-block + .cv-block {
  margin-top: 0;
}

.cv-rule {
  border: none;
  border-top: 2px solid var(--ink);
  margin: 0 0 1.1rem;
}

.cv-section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.cv-intro {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  max-width: 38ch;
}

.cv-entry {
  margin-bottom: 1.5rem;
}

.cv-entry-title {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
}

.cv-entry-meta {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink);
  margin: 0.15rem 0 0.5rem;
}

.cv-entry-meta .dates {
  font-style: normal;
  font-size: 0.85rem;
  opacity: 0.75;
}

.cv-entry ul {
  list-style: disc;
  padding-left: 1.15rem;
  margin-top: 0.55rem;
}

.cv-entry li {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 0.35rem 0;
}

.cv-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 700;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 1rem 0 0.25rem;
}

.cv-text {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.55;
}

.cv-stack-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cv-stack-list li {
  margin: 0 0 0.85rem;
}

.cv-stack-list .label {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
}

.cv-stack-list .value {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 0.1rem;
}

.cv-portfolio-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
}

.cv-portfolio-cta a.portfolio-word {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--blue);
  text-decoration: none;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.cv-portfolio-cta a.portfolio-word:hover {
  color: var(--blue-soft);
  transform: skewX(-8deg);
}

.cv-portfolio-cta small {
  font-family: var(--font-body);
  font-size: 0.72rem;
  opacity: 0.65;
  word-break: break-all;
}

.cv-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 2px solid var(--ink);
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 600;
  font-size: 1.15rem;
}

.cv-social a {
  color: var(--ink);
  text-decoration: none;
}

.cv-social .li-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 2px;
}

/* ---------- Timeline (projects) ---------- */

#timeline {
  width: 100%;
  position: relative;
  margin: clamp(30px, 5vh, 60px) auto;
  transition: all 0.4s ease;
}

#timeline:before {
  content: "";
  width: 3px;
  height: 100%;
  background: var(--ink);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

#timeline:after {
  content: "";
  clear: both;
  display: table;
  width: 100%;
}

#timeline .timeline-item {
  margin-bottom: clamp(30px, 6vh, 60px);
  position: relative;
  text-align: right;
}

#timeline .timeline-item .timeline-icon {
  background: var(--ink);
  width: 20px;
  height: 20px;
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -10px;
  border-radius: 50%;
  margin-top: 12px;
  overflow: hidden;
}

#timeline .timeline-item .timeline-content {
  width: 45%;
  transition: all 0.3s ease;
}

#timeline .timeline-item .timeline-content h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}

#timeline .timeline-item .timeline-content p {
  color: var(--ink);
  margin-top: 10px;
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(0.95rem, 1vw + 0.7rem, 1.1rem);
  line-height: 1.55;
}

#timeline .timeline-item .timeline-content .date {
  display: inline-block;
  background-color: rgba(35, 31, 32, 0.06);
  padding: 6px 12px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  font-weight: 600;
}

#timeline .timeline-item .timeline-content.right {
  float: right;
  text-align: left;
}

@media (max-width: 767px) {
  #timeline {
    margin: 30px auto;
    padding: 0;
    width: 95%;
  }

  #timeline:before {
    left: 10px;
    transform: none;
  }

  #timeline .timeline-item .timeline-icon {
    left: 10px;
    margin-left: -8.5px;
  }

  #timeline .timeline-item {
    text-align: left;
  }

  #timeline .timeline-item .timeline-content,
  #timeline .timeline-item .timeline-content.right {
    width: calc(100% - 40px);
    float: right;
    text-align: left;
  }
}

/* ---------- Details / summary ---------- */

.index-details {
  max-width: fit-content;
  margin: clamp(16px, 3vh, 28px) 0;
}

.index-details .hide,
.index-details[open] .show {
  display: none;
}

.index-details[open] .hide {
  display: inline;
}

details > summary {
  display: inline-block;
  padding: 4px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 1px solid var(--ink);
  border-radius: 20px;
  background: var(--warm-2);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s ease;
}

details > summary:hover {
  background-color: rgba(209, 213, 219, 0.35);
}

details > summary::-webkit-details-marker {
  display: none;
}

details summary:before {
  content: "\25B8";
  margin-right: 6px;
  color: var(--ink);
}

details[open] summary:before {
  content: "\25BE";
}

.summary-li-ul li {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink);
}

/* ---------- Footer meta ---------- */

.page-footer-meta {
  width: 90%;
  max-width: var(--max);
  margin: 3rem auto 2rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(35, 31, 32, 0.35);
}

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

/* PDF-format layout helpers */
.file-links-center {
  justify-content: center;
  width: 100%;
  max-width: none;
  margin-top: 1.75rem;
}

.section-inner-wide {
  max-width: 52rem;
  width: 100%;
  margin: 1.75rem auto 0;
}

.section-inner-timeline {
  max-width: 56rem;
}

/* ---------- Home page alignment to the supplied one-page reference ---------- */

.navigation-container {
  height: 1.5rem;
  margin-top: 0;
  background-color: rgba(255, 255, 255, 0.96);
}

.navigation-wrapper {
  height: 1.5rem;
  margin-bottom: 0;
}

.navigation-wrapper nav a {
  margin-top: 0;
  margin-bottom: 0;
}

.site-header .header-container {
  margin-top: 0;
}

.header-container .header-wrapper {
  overflow: visible;
}

.header-container .header-title {
  font-size: clamp(2.45rem, 6.8vw, 6.1rem);
}

.header-container .header-title .title-name {
  font-size: calc(1em / var(--phi));
  line-height: 0.98;
}

.header-container .header-title .title-role {
  font-size: 1em;
  line-height: 0.92;
}

.header-container hr,
.header-rule {
  margin-top: 1.6rem;
  border-top-width: 1.5px;
}

.welcome-block {
  max-width: var(--max);
  margin-top: 1.35rem;
}

.file-links-center {
  gap: 0 1.45rem;
  margin-top: 1.45rem;
}

.file-link {
  font-size: clamp(1.25rem, 2.25vw, 1.85rem);
}

.home-about {
  margin-top: 3.4rem;
}

.home-about .section-inner {
  max-width: var(--max);
  width: calc(100% - var(--gutter) * 2);
  margin-top: 0;
}

.home-about p {
  max-width: min(56vw, 50rem);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.6;
}

.home-about p + p {
  margin-top: 1rem;
}

.history {
  margin-top: 4.4rem;
}

.history .section-inner-timeline {
  max-width: 57rem;
}

.history-list {
  margin-top: 0;
}

.history-item {
  margin-bottom: 2.6rem;
}

.travel-route {
  position: absolute;
  z-index: 1;
  top: calc(0.35rem + 7px - 4rem);
  height: calc(100% + 2.6rem + 4rem);
  overflow: visible;
  pointer-events: none;
}

.travel-route--desktop {
  left: 50%;
  display: block;
  width: 50%;
}

.travel-route--mobile {
  display: none;
}

.travel-route-line {
  fill: none;
  stroke: #e94735;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 6 7;
  animation: travel-route-flow 20s linear infinite;
}

.travel-route-mask {
  fill: none;
  stroke: #fff;
  stroke-width: 8;
  stroke-linecap: butt;
}

.travel-route-icon {
  color: #e94735;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.travel-route-bus {
  fill: #fff;
}

.travel-route-plane {
  fill: currentColor;
  stroke: none;
}

@keyframes travel-route-flow {
  to { stroke-dashoffset: -48; }
}

.history-item:nth-child(2) .history-side {
  position: relative;
  z-index: 2;
}

.history-item:nth-child(2) .history-marker {
  display: none;
}

.history-side {
  width: 46%;
  max-width: 46%;
}

.history-item:nth-child(odd) .history-side {
  padding-right: 2.2rem;
}

.history-item:nth-child(even) .history-side {
  padding-left: 2.2rem;
}

.history-role {
  font-size: clamp(1rem, 1.55vw, 1.25rem);
}

.history-place {
  font-size: 0.9rem;
}

.history-note {
  font-size: 0.82rem;
}

.contact-container {
  margin-top: 3.8rem;
  padding: 2.6rem 0 2.45rem;
}

.contact-container .email-row {
  transform-origin: left center;
  transition: opacity 0.2s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.contact-container .email-row h1 {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), letter-spacing 0.35s ease;
}

.contact-container .email-row .email-icon {
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: center;
}

.contact-container .email-row:hover,
.contact-container .email-row:focus-visible {
  transform: translateY(-3px);
}

.contact-container .email-row:hover h1,
.contact-container .email-row:focus-visible h1 {
  transform: skewX(-5deg);
  letter-spacing: 0.035em;
}

.contact-container .email-row:hover .email-icon,
.contact-container .email-row:focus-visible .email-icon {
  transform: rotate(-12deg) scale(1.12);
}

@media (prefers-reduced-motion: reduce) {
  .contact-container .email-row,
  .contact-container .email-row h1,
  .contact-container .email-row .email-icon {
    transition: none;
  }
}

@media (max-width: 767px) {
  .header-container .header-title {
    font-size: clamp(2.15rem, 9vw, 4.1rem);
  }

  .header-container hr,
  .header-rule {
    margin-top: 1.2rem;
  }

  .home-about {
    margin-top: 3rem;
  }

  .history {
    margin-top: 3.1rem;
  }

  .history-side,
  .history-item:nth-child(odd) .history-side,
  .history-item:nth-child(even) .history-side {
    width: auto;
    max-width: none;
    margin-left: 2.7rem;
    padding-left: 0;
    padding-right: 0;
  }

  .history-list::before,
  .history-marker {
    left: 10px;
  }

  .history-item:nth-child(odd) .history-side {
    text-align: left;
  }

  .contact-container {
    margin-top: 3rem;
  }
}

@media (max-width: 799px) {
  .travel-route--desktop {
    display: none;
  }

  .travel-route--mobile {
    left: 0;
    display: block;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .travel-route-line {
    animation: none;
  }
}
