/* ============================================================
   HOME PAGE — harri.xyz
   ============================================================ */

/* ------------------------------------------------------------
   Hero — compact, sits directly above the showreel
   ------------------------------------------------------------ */
.hero {
  padding-top: calc(80px + var(--space-12));
  padding-bottom: var(--space-10, 2.5rem);
}

.hero__kicker {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-size: var(--text-2xl);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero__title em {
  font-style: normal;
  color: var(--color-accent);
}

/* ------------------------------------------------------------
   Showreel
   ------------------------------------------------------------ */
.showreel {
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--color-border);
}

.showreel__header {
  margin-bottom: var(--space-6);
}

.showreel__embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--color-surface);
  border-radius: 4px;
  overflow: hidden;
}

.showreel__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.showreel__facade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: var(--color-surface);
}

.showreel__facade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--duration-base) var(--ease-out);
}

.showreel__facade:hover img {
  opacity: 0.7;
}

.showreel__play {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  transition: transform var(--duration-base) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out);
}

.showreel__facade:hover .showreel__play {
  transform: scale(1.1);
  border-color: var(--color-accent);
  background-color: rgba(232, 255, 0, 0.15);
}

.showreel__play svg {
  width: 24px;
  height: 24px;
  fill: white;
  margin-left: 4px;
}

.showreel__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ------------------------------------------------------------
   Featured Works — auto-scrolling carousel
   ------------------------------------------------------------ */
.works {
  padding-block: var(--space-16);
}

.works__header {
  padding-inline: var(--space-6);
  max-width: 1200px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

/* Viewport clips the overflowing track.
   position:relative makes it the offsetParent for measurement in JS. */
.works__viewport {
  overflow: hidden;
  position: relative;
}

/* Track: wide flex row. JS drives translateX — no CSS animation. */
.works__track {
  display: flex;
  gap: var(--space-4);
  width: max-content;
  padding-inline: var(--space-6);
  will-change: transform;
  /* Disable pointer-events while animating so links still work on tap */
  touch-action: pan-x;
}

/* Cards — anchors, no info section below the image */
.work-card {
  flex: 0 0 clamp(280px, 36vw, 460px);
  border-radius: 4px;
  overflow: hidden;
  display: block;
  text-decoration: none;
}

.work-card__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background-color: var(--color-surface);
}

.work-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out);
}

.work-card:hover .work-card__thumb img {
  transform: scale(1.04);
}

/* Overlay: gradient + info, revealed on hover */
.work-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    transparent 40%,
    transparent 40%,
    rgba(0, 0, 0, 0.75) 100%
  );
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
}

.work-card:hover .work-card__overlay {
  opacity: 1;
}

.work-card__overlay-top {
  display: flex;
  align-items: flex-start;
}

.work-card__overlay-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
}

.work-card__tag {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background-color: rgba(0, 0, 0, 0.5);
  padding: var(--space-1) var(--space-3);
  border-radius: 2px;
}

.work-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-text);
  transform: translateY(6px);
  transition: transform var(--duration-base) var(--ease-out);
}

.work-card:hover .work-card__title {
  transform: translateY(0);
}

.work-card__year {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   Contact — minimal, mailto only
   ------------------------------------------------------------ */
.contact {
  padding-block: var(--space-24);
  border-top: 1px solid var(--color-border);
}

.contact__heading {
  font-size: var(--text-2xl);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

.contact__heading em {
  font-style: normal;
  color: var(--color-accent);
}

.contact__sub {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  max-width: 480px;
  margin-bottom: var(--space-8);
}
