/* =========================================================
   jeffmutschler.com — Custom Stylesheet
   Apple-clean, alternating timeline with image bleed
   ========================================================= */

/* ----- Design Tokens ----- */
:root {
  --bg: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --border: #d2d2d7;
  --accent: #170129;
  --decade-ghost: #f0f0f2;
  --container: 1100px;
  --radius: 12px;
}

/* ----- Reset ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ----- Inter from Google Fonts (loaded in <head>) ----- */

/* ----- Container ----- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 20px 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.site-header__nav {
  display: flex;
  gap: 32px;
}
.site-header__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}
.site-header__nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 140px clamp(20px, 4vw, 60px) 80px;
}
.hero__photo {
  height: 200px;
  width: auto;
  margin: 0 auto 28px;
  display: block;
}
.hero__name {
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.hero__headline {
  font-size: clamp(44px, 7.5vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 28px;
}
.hero__sub {
  font-size: clamp(17px, 2vw, 22px);
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 40px;
  line-height: 1.5;
}
.hero__links {
  display: flex;
  gap: 28px;
  justify-content: center;
}
.hero__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.hero__links a:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.hero__scroll {
  margin-top: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b8b8c0;
}
.hero__scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 48px;
  background: var(--border);
  animation: line-pulse 2.2s ease infinite;
}
@keyframes line-pulse {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  padding: clamp(60px, 10vw, 120px) 0;
  border-top: 1px solid var(--border);
}
.about__inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  text-align: justify;
}
.about__inner p {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.7;
  color: var(--muted);
  font-weight: 400;
}
.about__inner a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.about__inner a:hover {
  border-color: var(--accent);
  text-decoration: none;
}

/* =========================================================
   TIMELINE
   ========================================================= */
.timeline {
  position: relative;
  padding-bottom: 80px;
}

/* The spine */
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
  transform: translateX(-50%);
}

/* ----- Decade Break ----- */
.decade-break {
  position: relative;
  text-align: center;
  padding: 80px 0 64px;
  overflow: hidden;
  z-index: 1;
}
.decade-break__ghost {
  font-size: clamp(80px, 14vw, 160px);
  font-weight: 800;
  color: var(--decade-ghost);
  line-height: 1;
  letter-spacing: -0.05em;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}
.decade-break__label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  padding: 0 20px;
  white-space: nowrap;
}

/* ----- Year Marker (sits on spine between entries) ----- */
.entry-marker {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-bottom: 40px;
  /* scroll reveal */
  opacity: 0;
  transition: opacity 0.5s ease;
}
.entry-marker.is-visible {
  opacity: 1;
}

.entry-marker::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  z-index: 3;
}
.entry-marker time {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  position: relative;
  z-index: 4;
}

/* ----- Timeline Item wrapper ----- */
.timeline-item {
  margin-bottom: clamp(60px, 10vw, 100px);
}

/* ----- Entry ----- */
.entry {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  /* scroll reveal */
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.entry.is-visible {
  opacity: 1;
  transform: none;
}

/* Default: image LEFT, text RIGHT */
.entry__media {
  flex: 0 0 55%;
  overflow: hidden;
  border-radius: var(--radius);
}
.entry__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* Enterprise software entries: constrain image height to match landscape plugin screenshots */
#sots .entry__media,
#aald .entry__media,
#siftlog .entry__media {
  height: 240px;
}
#sots .entry__media img,
#aald .entry__media img,
#siftlog .entry__media img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.entry__content {
  flex: 0 0 45%;
  padding: clamp(24px, 4vw, 64px);
}

/* Flip: image RIGHT, text LEFT */
.entry--flip {
  flex-direction: row-reverse;
}

/* Image placeholder (while awaiting real images) */
.media-placeholder {
  width: 100%;
  min-height: 320px;
  background: var(--decade-ghost);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-placeholder::after {
  content: "IMAGE";
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--border);
}

/* ----- Entry Text ----- */
.entry__title {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 18px;
}
.entry__copy {
  max-height: 210px;
  overflow-y: auto;
  padding-right: 8px;
  /* thin scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.entry__copy::-webkit-scrollbar {
  width: 4px;
}
.entry__copy::-webkit-scrollbar-track {
  background: transparent;
}
.entry__copy::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.entry__copy p {
  font-size: 13px;
  line-height: 1.72;
  color: var(--muted);
  margin-bottom: 12px;
}
.entry__copy p:last-child {
  margin-bottom: 0;
}

/* placeholder copy style (remove when real copy is in) */
.placeholder-copy {
  font-size: 13px;
  color: #ccc;
  border: 1px dashed #e8e8ec;
  padding: 16px 20px;
  border-radius: 8px;
  line-height: 1.6;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  padding: clamp(60px, 10vw, 120px) 0;
  border-top: 1px solid var(--border);
}
.contact__inner {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}
.contact__heading {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 12px;
}
.contact__sub {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 52px;
  line-height: 1.6;
}

.form-field {
  margin-bottom: 22px;
}
.form-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}
.form-field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}
.form-field--select {
  position: relative;
}
.form-field--select::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--muted);
  pointer-events: none;
}
/* nudge arrow down to account for the label above */
.form-field--select::after {
  top: calc(50% + 12px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
  margin-top: 8px;
}
.form-submit:hover {
  background: #333;
}
.form-submit:active {
  transform: scale(0.99);
}
.form-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.form-status {
  display: none;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 15px;
  margin-top: 20px;
  line-height: 1.5;
}
.form-status--success {
  background: #f0fff4;
  color: #1a6632;
  border: 1px solid #b7e4c7;
  display: block;
}
.form-status--error {
  background: #fff0f0;
  color: #b91c1c;
  border: 1px solid #fecaca;
  display: block;
}

/* Form success state */
.form-success {
  text-align: center;
  padding: 60px 20px;
}
.form-success__check {
  font-size: 48px;
  color: #111;
  margin: 0 0 20px;
  line-height: 1;
}
.form-success__heading {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
  margin: 0 0 12px;
}
.form-success__body {
  font-size: 16px;
  color: #555;
  line-height: 1.65;
  max-width: 420px;
  margin: 0 auto;
}
.form-success__body a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   CLIENTS MARQUEE
   ========================================================= */
.clients {
  padding: clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.clients__header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 clamp(20px, 4vw, 60px);
}
.clients__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.clients__note {
  font-size: 14px;
  color: var(--muted);
}
.clients__track-wrapper {
  overflow: hidden;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.clients__track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: clients-marquee 70s linear infinite;
  align-items: center;
  padding: 12px 0;
}
.clients__track:hover {
  animation-play-state: paused;
}
.clients__logo {
  flex: 0 0 auto;
  height: 64px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.5;
  transition:
    filter 0.35s ease,
    opacity 0.35s ease;
}
.clients__logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}
@keyframes clients-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================
   TECH STACK
   ========================================================= */
.tech {
  padding: clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid var(--border);
}
.tech__header {
  max-width: 680px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
  padding: 0 clamp(20px, 4vw, 60px);
}
.tech__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.tech__note {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}
.tech__groups {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 0 clamp(20px, 4vw, 60px);
  max-width: var(--container);
  margin: 0 auto;
}
.tech__group-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--border);
  margin-bottom: 12px;
}
.tech__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tech__pill {
  display: inline-block;
  padding: 5px 13px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* =========================================================
   CLOSING STATEMENT
   ========================================================= */
.closing {
  padding: clamp(60px, 10vw, 120px) 0;
  border-top: 1px solid var(--border);
}
.closing__inner {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  text-align: justify;
}
.closing__inner p {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 20px;
}
.closing__inner p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.site-footer p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.site-footer a {
  color: var(--muted);
}
.site-footer a:hover {
  color: var(--accent);
}

/* =========================================================
   SCROLL REVEAL — applied by IntersectionObserver
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   RESPONSIVE — Mobile
   ========================================================= */
@media (max-width: 768px) {
  /* Hide spine on mobile */
  .timeline::before {
    display: none;
  }

  /* Stack all entries vertically, image on top */
  .entry,
  .entry--flip {
    flex-direction: column !important;
  }
  .entry__media {
    flex: none;
    width: 100%;
    border-radius: var(--radius);
  }
  .entry__content {
    flex: none;
    width: 100%;
    padding: 24px 0 0;
  }

  /* Center year markers */
  .entry-marker::before {
    display: none;
  }

  /* Decade ghost scales down */
  .decade-break {
    padding: 48px 0 40px;
  }
}

@media (max-width: 480px) {
  .hero__photo {
    height: 150px;
  }
  .hero__links {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .site-header__nav {
    gap: 20px;
  }
}
