/* ==========================================================================
   SECTIONS — styles specific to each section of the page
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero — white, black text, centered content
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;            /* svh: real visible height on mobile */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 3rem) var(--gutter) 9rem;
  background-color: var(--color-white);
  color: var(--color-black);
  text-align: center;
}

.hero__inner {
  max-width: 60rem;
  display: flex;
  flex-direction: column;
  align-items: center;           /* centers the children horizontally */
}

.hero__title {
  margin-bottom: 2rem;
}

.hero__lead {
  max-width: 40rem;
  margin-bottom: 2.75rem;
  color: var(--color-muted-dark);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
}

.hero__lead strong {
  color: var(--color-black);
  font-weight: 700;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 2.5rem;
}

/* Availability list with pink check marks */
.availability {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem 2rem;
  margin: 3.5rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--color-line-dark);
  list-style: none;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.availability li::before {
  content: "✓";
  margin-right: .5rem;
  color: var(--color-pink);
  font-weight: 900;
}

/* "Scroll" hint: centered at the bottom, with a vertical moving line */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  color: var(--color-muted-dark);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.scroll-hint__line {
  position: relative;
  width: 1px;
  height: 48px;
  overflow: hidden;
  background-color: var(--color-line-dark);
}

.scroll-hint__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--color-black);
  animation: scroll-line 2.2s var(--ease-out) infinite;
}

@keyframes scroll-line {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* Hidden on small or short screens: not enough room */
@media (max-width: 575.98px), (max-height: 800px) {
  .scroll-hint {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   2. About — centered, small discreet photo
   -------------------------------------------------------------------------- */
.about {
  border-top: 1px solid var(--color-line-dark);
}

.about__photo {
  width: 140px;
  aspect-ratio: 1;               /* always a perfect square → circle */
  margin: 0 auto 3rem;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--color-black);
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;             /* fills the circle without distortion */
}

.about__body {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}

/* Text in 2 "newspaper" columns: it flows down the 1st column, then the 2nd */
.about__columns {
  columns: 2;                    /* number of columns, widths are balanced automatically */
  column-gap: 2.5rem;
  text-align: left;
  color: var(--color-muted-dark);
  font-size: .95rem;
}

.about__columns p {
  margin-bottom: 1.5rem;
  break-inside: avoid;           /* a paragraph is never split between two columns */
}

.about__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 2.5rem;
  margin-top: 3rem;
}

@media (max-width: 767.98px) {
  .about__columns {
    columns: 1;                  /* one column on small screens */
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   3. Skills — dark section, numbered rows
   -------------------------------------------------------------------------- */
.skills-list {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-line-light);
}

.skill {
  display: grid;
  grid-template-columns: 4rem 1fr 1.6fr;   /* number | title | content */
  align-items: center;
  gap: 1.5rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--color-line-light);
}

.skill__number {
  color: var(--color-pink);
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.25rem;
}

.skill__title {
  transition: transform var(--duration) var(--ease-out);
}

.skill__text {
  margin-bottom: 1rem;
  color: var(--color-muted-light);
  font-size: .9rem;
}

/* Hover: the title slides right, the tags light up */
.skill:hover .skill__title {
  transform: translateX(.75rem);
}

.skill:hover .tag {
  border-color: var(--color-pink);
}

@media (max-width: 991.98px) {
  .skill {
    grid-template-columns: 3rem 1fr;
  }

  .skill__content {
    grid-column: 2;              /* content goes under the title */
  }
}

/* --------------------------------------------------------------------------
   4. Projects — zig-zag rows (visual / text)
   -------------------------------------------------------------------------- */
.project {
  display: grid;
  grid-template-columns: 1.15fr 1fr;      /* visual | text */
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 72rem;
  margin: 0 auto;
}

.project + .project {
  margin-top: clamp(5rem, 10vw, 8rem);    /* space only BETWEEN projects */
}

/* Every other project: the visual goes to the right */
.project--reverse .project__visual {
  order: 2;
}

.project__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 3 / 2;           /* a bit less tall than before (4 / 3) */
  padding: 8%;
  overflow: hidden;
  background-color: #1c1c1c;     /* same dark grey for every project */
}

/* Screenshot: slightly tilted, straightens on hover */
.project__shot {
  width: 100%;
  height: auto;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
  transform: translateY(var(--parallax, 0px)) rotate(-2deg);   /* --parallax: see animations.js */
  transition: transform .8s var(--ease-out);
}

.project:hover .project__shot {
  transform: translateY(var(--parallax, 0px)) rotate(0) scale(1.03);
}

/* Text side */
.project__meta {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1rem;
  color: var(--color-muted-dark);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.project__meta span {
  color: var(--color-black);
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0;
}

.project__title {
  margin-bottom: 1.25rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.project__text {
  margin-bottom: 1.5rem;
  color: var(--color-muted-dark);
  font-size: .95rem;
}

.project__text code {
  color: var(--color-black);
  font-size: .85em;
}

.project__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2rem;
}

.project__note {
  color: var(--color-muted-dark);
  font-size: .78rem;
  font-style: italic;
}

@media (max-width: 991.98px) {
  .project {
    grid-template-columns: 1fr;           /* stacked: visual on top, text below */
  }

  .project--reverse .project__visual {
    order: 0;                             /* cancels the zig-zag on small screens */
  }
}

/* --------------------------------------------------------------------------
   5. Graphic design — dark, text + small gallery
   -------------------------------------------------------------------------- */
.design__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
  max-width: 72rem;
  margin: 0 auto;
}

.design__text h2 {
  margin-bottom: 2rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.design__text p:not(.kicker) {
  color: var(--color-muted-light);
}

.design__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.design__item {
  margin: 0;
  overflow: hidden;
}

.design__item--wide {
  grid-column: 1 / -1;                    /* spans the full width of the grid */
}

.design__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}

.design__item:hover img {
  transform: scale(1.05);
}

@media (max-width: 991.98px) {
  .design__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   6. Journey — vertical timeline
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 0 0 2.5rem;
  list-style: none;
  border-left: 1px solid var(--color-line-dark);
}

.timeline__item {
  position: relative;
  padding-bottom: 3rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

/* Dot on the line */
.timeline__item::before {
  content: "";
  position: absolute;
  top: .35rem;
  left: calc(-2.5rem - 6px);              /* back to the line, centered on it */
  width: 11px;
  height: 11px;
  border: 2px solid var(--color-black);
  border-radius: 50%;
  background-color: var(--color-white);
}

/* Next step: filled pink dot */
.timeline__item--next::before {
  border-color: var(--color-pink);
  background-color: var(--color-pink);
}

.timeline__date {
  margin-bottom: .5rem;
  color: var(--color-muted-dark);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.timeline__title {
  margin-bottom: .5rem;
}

.timeline__item p:last-child {
  margin: 0;
  color: var(--color-muted-dark);
  font-size: .95rem;
}

/* --------------------------------------------------------------------------
   7. Contact — dark, centered
   -------------------------------------------------------------------------- */
.contact {
  text-align: center;
}

.contact__mail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

/* Big e-mail address with an underline that grows on hover */
.contact__email {
  position: relative;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.5rem, 4.5vw, 3.25rem);
  line-height: 1.2;
  overflow-wrap: anywhere;            /* long address: may break on small screens */
}

.contact__email::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.25rem;
  width: 100%;
  height: 2px;
  background-color: var(--color-pink);
  transform: scaleX(.25);
  transition: transform var(--duration) var(--ease-out);
}

.contact__email:hover::after,
.contact__email:focus-visible::after {
  transform: scaleX(1);
}

.contact__copy {
  padding: .6rem 1.1rem;
  border: 1px solid var(--color-line-light);
  background: none;
  color: var(--color-white);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: border-color var(--duration) var(--ease-out);
}

.contact__copy:hover,
.contact__copy:focus-visible {
  border-color: var(--color-white);
}

.contact__status {
  min-height: 1.5rem;                 /* reserves the space: no jump when the text appears */
  margin: 0;
  color: var(--color-pink);
  font-size: .85rem;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}
