/* ==========================================================
   HELVETEXT
   ========================================================== */

:root {
  --color-bg: #00007a;
  --color-text: #f0ede6;
  --color-muted: #a0b0c0;
  --color-rule: #dc1414;
  --color-accent: #d35400;
  --content-width: 720px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

/* --- Layout --- */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Fold --- */
.fold {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10vh clamp(1rem, 4vw, 2rem);
  gap: 0.4rem;
  position: relative;
}

.fold-hero {
  background: url('Hieronymus_Bosch_-_The_Garden_of_Earthly_Delights_-_Hell.jpg') center bottom / cover no-repeat;
  position: relative;
}

.fold-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.fold-red {
  background: url('Herbert_James_Draper_-_The_Wrath_of_the_Sea_God.jpg') center center / cover no-repeat;
}

.fold-hero-box {
  background: #000;
  padding: 1.5rem 2.5rem;
  position: relative;
  z-index: 1;
}

.fold-logo {
  width: min(280px, 50vw);
  height: auto;
  margin-bottom: 2rem;
  animation: spin-y 3s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes spin-y {
  0% { transform: rotateY(-70deg); }
  50% { transform: rotateY(70deg); }
  100% { transform: rotateY(-70deg); }
}

.fold-headline {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #dc1414;
  position: relative;
  z-index: 1;
}

.fold-headline-hero {
  color: var(--color-text);
  position: relative;
  z-index: 1;
}

.highlight-yellow {
  color: #ffdd00;
}

.fold-rank {
  font-size: 0.35em;
  font-weight: 400;
  color: var(--color-text);
  vertical-align: super;
  letter-spacing: 0;
}

.fold-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--color-text);
  font-weight: 400;
}

.fold-details {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: clamp(0.8rem, 2vw, 1rem);
  color: var(--color-text);
  font-weight: 400;
}

.fold-manifesto {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-text);
  max-width: 14em;
}

.fold-list {
  list-style: none;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vh, 2.5rem);
  max-width: 90vw;
}

.fold-list li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* --- Header --- */
.site-header {
  padding: 1.5rem 0;
  border-bottom: 2px solid var(--color-rule);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.wordmark {
  font-size: 1.1rem;
  font-weight: 700;
  color: #dc1414;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-nav a {
  color: #dc1414;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  margin-left: 1.5rem;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--color-text);
}

/* --- Section Image --- */
.section-image-wrap {
  position: relative;
  margin: 3rem 0;
  overflow: hidden;
}

.section-image {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.4s ease;
}

.section-image-alt {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.image-credit {
  position: absolute;
  bottom: 0.4rem;
  right: 0.5rem;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  text-align: right;
  z-index: 1;
}

.fold-credit {
  position: absolute;
  bottom: 0.6rem;
  right: 0.8rem;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  text-align: right;
  z-index: 1;
}

/* --- Sections --- */
.section {
  margin: 4rem 0;
}

.section h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
  color: #dc1414;
}

.section p {
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
}

.section p:last-child {
  margin-bottom: 0;
}

/* --- Skills List --- */
.skills-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skills-list li {
  font-size: 1.05rem;
  font-weight: 700;
  color: #dc1414;
  border: 2px solid #dc1414;
  padding: 0.4rem 1rem;
  border-radius: 2px;
  transition: color 0.3s ease;
  cursor: default;
}

.skills-list li[data-swap] {
  cursor: pointer;
}

/* --- Contact Email --- */
.contact-email {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  display: block;
  margin-top: 1rem;
}

.contact-email:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --- Horizontal Rules --- */
.section-rule {
  border: none;
  border-top: 1px solid var(--color-rule);
  margin: 3rem 0;
}

/* --- Services List --- */
.services-list {
  list-style: none;
  padding: 0;
}

.services-list li {
  padding: 1.1rem 0;
}

.service-name {
  font-weight: 700;
  font-size: 1rem;
  display: block;
  margin-bottom: 0.2rem;
  color: #dc1414;
}

.service-desc {
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* --- Contact --- */
.contact-line {
  margin-bottom: 0.5rem;
}

.contact-line a {
  color: #dc1414;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.contact-line a:hover {
  color: var(--color-accent);
}

/* --- Pull Quote --- */
.pull-quote {
  font-size: 1.4rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.4;
  color: #dc1414;
  border-left: 3px solid #dc1414;
  padding-left: 1.25rem;
  margin: 2.5rem 0;
}

/* --- Footer --- */
.site-footer {
  margin-top: 4rem;
  padding: 1.5rem 0;
}

.site-footer p {
  font-size: 0.75rem;
  color: #dc1414;
}

.footer-linkedin {
  display: inline-block;
  color: var(--color-text);
  margin-bottom: 0.8rem;
  transition: color 0.2s ease;
}

.footer-linkedin:hover {
  color: #dc1414;
}

/* --- Responsive --- */

/* Landscape phones / short viewports */
@media (max-height: 500px) {
  .fold {
    min-height: auto;
    padding: 3rem 1.5rem;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .fold-headline {
    font-size: clamp(1.6rem, 5vw, 3rem);
  }

  .fold-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  }

  .fold-manifesto {
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  }

  .section h2 {
    font-size: 1.6rem;
  }

  .skills-list li {
    font-size: 0.95rem;
    padding: 0.35rem 0.8rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  html {
    font-size: 16px;
  }

  .fold {
    padding: 2rem 1rem;
  }

  .fold-logo {
    width: min(180px, 55vw);
    margin-bottom: 1.2rem;
  }

  .fold-headline {
    font-size: clamp(1.4rem, 7vw, 2.2rem);
  }

  .fold-rank {
    font-size: 0.4em;
    display: block;
  }

  .fold-list {
    gap: 1.5rem;
  }

  .section {
    margin: 2.5rem 0;
  }

  .section h2 {
    font-size: 1.35rem;
  }

  .section p {
    font-size: 1rem;
  }

  .skills-list {
    gap: 0.4rem;
  }

  .skills-list li {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
  }

  .contact-email {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
  }

  .section-image-wrap {
    margin: 2rem 0;
  }

  .site-footer {
    margin-top: 2rem;
  }
}
