/* =========================================================
   Base: reset, typography, shared helpers and buttons
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--color-black);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* guards against stray horizontal scroll */
}

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

a {
  color: inherit;
}

/* In-page links (#contact etc.) stop a little below the top of the screen.
   If the header is ever made sticky, raise this to var(--header-h). */
[id] {
  scroll-margin-top: 1rem;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--color-rose);
  color: var(--color-black);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--color-rose);
  outline-offset: 3px;
}

/* ---------- Section headings (shared by every homepage section) ---------- */
.section-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-rose);
}

/* Variant: thin pink line after the label ("CONTACT ——") */
.section-eyebrow--line {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.section-eyebrow--line::after {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-title__accent {
  color: var(--color-rose);
}

.section-lead {
  max-width: 36rem;
  margin: 1rem 0 0;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  color: var(--text-secondary);
}

/* Variant: short pink rule to the right of the heading */
.section-title--rule {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.section-title--rule::after {
  content: "";
  flex: 0 0 auto;
  width: clamp(4rem, 9vw, 8.5rem);
  height: 3px;
  margin-top: 0.15em; /* sits on the visual middle of the capitals */
  border-radius: 3px;
  background: var(--color-rose);
}

/* On small phones the heading needs the full width, so the rule steps aside */
@media (max-width: 480px) {
  .section-title--rule::after {
    display: none;
  }
}

/* ---------- Ticker pause / play button (Tech Stack + Testimonials) ---------- */
.ticker-pause {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(255, 137, 141, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-rose-light);
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.ticker-pause[hidden] { display: none; }
.ticker-pause svg { width: 16px; height: 16px; }
.ticker-pause .icon-play { display: none; }
.ticker-pause[aria-pressed="true"] .icon-play { display: block; }
.ticker-pause[aria-pressed="true"] .icon-pause { display: none; }

.ticker-pause:hover {
  border-color: var(--color-rose);
  background: var(--color-rose);
  color: var(--color-black);
}

.ticker-pause:focus-visible {
  outline: 2px solid var(--color-rose);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .ticker-pause {
    display: none; /* nothing moves, so nothing to pause */
  }
}

/* ---------- Text link with arrow ("View All Projects", "Learn More") ---------- */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.25rem;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-rose);
  text-decoration: none;
}

.text-link__icon {
  width: 1.2em;
  height: 1.2em;
  transition: transform 0.25s var(--ease-out);
}

.text-link:hover .text-link__icon {
  transform: translateX(4px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  border: 0;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.btn--primary {
  background: var(--color-rose);
  color: var(--color-black);
  box-shadow: 0 10px 30px -12px rgba(255, 137, 141, 0.55);
}

.btn--primary:hover {
  background: #ff9ea1;
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.7rem 1.3rem;
  font-size: 0.95rem;
}

.btn__icon {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.25s var(--ease-out);
}

.btn:hover .btn__icon {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
