/* -----------------------------------------------------------
   jordan velez — portfolio styles
----------------------------------------------------------- */

:root {
  --bg: #f5f5f5;
  --bg-alt: #f7f6f6;
  --form-bg: #c4dcff;
  --hover-tint: #e0f1f2;
  --text: #141414;
  --text-secondary: #4a4a4a;
  --text-muted: #7a7a7a;
  --border: #141414;
  --accent: #2da5e6;
  --accent-hover: #52cbff;
  --tag-bg: #e5ddc7;
  --tag-text: #141414;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-helvetica: Helvetica, "Helvetica Neue", Arial, sans-serif;
  --font-serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.15s, border-color 0.15s; }
a:hover { color: var(--accent-hover); border-bottom-color: var(--accent-hover); }

.container { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* -------------------- nav -------------------- */
.nav { display: flex; justify-content: space-between; align-items: center; padding: 28px 0 24px; border-bottom: 2px solid var(--border); margin-bottom: 40px; flex-wrap: wrap; gap: 12px; }
.nav .brand {
  font-family: var(--font-helvetica);
  font-weight: 600;
  font-style: italic;
  font-size: 17px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  border: none;
}
.nav .brand:hover { border: none; color: var(--text); }
.nav-links { display: flex; gap: 22px; font-size: 14px; }
.nav-links a { color: var(--text); border: none; }
.nav-links a:hover { color: var(--accent); border: none; }

/* -------------------- hero -------------------- */
.hero { padding: 8px 0 20px; }
.hero h1 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 34px;
  margin: 0 0 26px;
  line-height: 1.18;
  letter-spacing: -0.005em;
}

/* -------------------- reel player -------------------- */
.reel { border: 2px solid var(--border); padding: 18px 20px; display: flex; align-items: center; gap: 16px; }
.play-btn { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); border: 2px solid var(--border); cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.15s; padding: 0; }
.play-btn:hover { background: var(--accent-hover); }
.play-btn svg { width: 16px; height: 16px; fill: var(--bg); }
.play-btn.playing svg.play-icon { display: none; }
.play-btn:not(.playing) svg.pause-icon { display: none; }
.reel-info { min-width: 140px; }
.reel-title { font-size: 14px; font-weight: 500; margin: 0 0 3px; }
.reel-sub { font-size: 12px; color: var(--text-muted); margin: 0; }
.waveform { height: 28px; display: flex; align-items: center; gap: 2px; flex: 1; cursor: pointer; overflow: hidden; }
.wf-bar { width: 2px; background: var(--text-muted); border-radius: 1px; transition: background 0.1s; flex-shrink: 0; }
.wf-bar.active { background: var(--accent); }

/* -------------------- section labels -------------------- */
.section { padding: 48px 0 8px; }
.section-label {
  font-size: 17px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin: 0 0 22px;
  text-transform: uppercase;
  font-weight: 600;
}

/* -------------------- about (photo left, bio right) -------------------- */
.section.about { padding-top: 22px; }
.about-row { display: flex; gap: 30px; align-items: stretch; }
.about-photo-wrap {
  flex: 45;
  padding-right: 30px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}
.about-photo {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--border);
  object-fit: cover;
  background: var(--bg-alt);
}
.about-photo-fallback {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 36px;
  color: var(--text-muted);
}
.photo-credit {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}
.about-text { flex: 55; }
.about-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin: 0;
}
.about-text .pop {
  font-weight: 600;
  font-size: 17px;
  color: #6262ff;
  font-style: italic;
}

/* -------------------- selected work grid -------------------- */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.work-card {
  border: 2px solid var(--border);
  padding: 16px;
  background: var(--bg);
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
  display: block;
}
.work-card:hover {
  background: var(--hover-tint);
  border: 2px solid var(--accent);
  color: var(--text);
}
.work-card:hover .work-title,
.work-card:hover .work-role { color: var(--text); }
.work-thumb {
  aspect-ratio: 16/10;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.work-thumb .thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-thumb svg { width: 36px; height: 36px; color: var(--text-muted); }
.work-title { font-size: 16px; font-weight: 500; margin: 0 0 4px; color: var(--text); }
.work-role { font-size: 12px; color: var(--text-secondary); margin: 0; line-height: 1.45; }
.tag {
  display: inline-block;
  font-size: 10px;
  padding: 3px 9px;
  background: var(--tag-bg);
  color: var(--tag-text);
  margin-top: 10px;
  letter-spacing: 0.04em;
  font-weight: 500;
  border: 1px solid var(--border);
}
.work-card:hover .tag { color: var(--tag-text); background: var(--tag-bg); }

/* -------------------- listen (custom player) -------------------- */
.track-list { display: flex; flex-direction: column; }
.track-row { padding: 14px 0; border-bottom: 1px solid var(--border); }
.track-row:last-child { border-bottom: none; }
.track-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.track-name { font-size: 15px; font-weight: 500; color: var(--text); }
.track-mood {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}
.track-len {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  margin-left: auto;
}
.track-player {
  display: flex;
  align-items: center;
  gap: 14px;
}
.track-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
  padding: 0;
}
.track-play:hover { background: var(--accent-hover); }
.track-play svg { width: 13px; height: 13px; fill: var(--bg); }
.track-play.playing .play-icon { display: none; }
.track-play:not(.playing) .pause-icon { display: none; }
.track-wf {
  height: 28px;
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  cursor: pointer;
  overflow: hidden;
}
.track-time {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  flex-shrink: 0;
  min-width: 36px;
  text-align: right;
}
.listen-more { margin-top: 22px; font-size: 13px; }

/* -------------------- services (rounded, emoji, bigger, italic desc) -------------------- */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.service {
  padding: 18px 20px;
  border: 2px solid var(--border);
  border-radius: 12px;
}
.service-name { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.service-desc { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.55; font-style: italic; }

/* -------------------- contact form -------------------- */
.contact { padding-top: 48px; }
.contact h2 { font-size: 26px; font-weight: 500; margin: 0 0 24px; letter-spacing: -0.01em; }
.form { border: 2px solid var(--border); padding: 26px; background: var(--form-bg); }
.field { margin-bottom: 20px; }
.field:last-of-type { margin-bottom: 22px; }
.field label { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 8px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 14px; background: var(--bg); border: 2px solid var(--border); color: var(--text); font-family: var(--font-sans); font-size: 14px; line-height: 1.5; border-radius: 0; -webkit-appearance: none; appearance: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23141414'%3E%3Cpath d='M5 8l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 36px;
}
.field textarea { min-height: 128px; resize: vertical; font-family: var(--font-sans); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.submit {
  width: 100%;
  padding: 15px;
  background: var(--accent);
  color: var(--bg);
  border: 2px solid var(--border);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s;
}
.submit:hover { background: var(--accent-hover); }

.before { margin-top: 34px; padding-top: 26px; }
.before h3 { font-size: 20px; font-weight: 500; margin: 0 0 14px; letter-spacing: -0.01em; }
.before ul { margin: 0 0 22px; padding-left: 20px; color: var(--text-secondary); font-size: 14px; line-height: 1.65; }
.before li { margin-bottom: 8px; }
.rather-email { font-size: 14px; color: var(--text); }
.rather-email a { font-family: var(--font-mono); font-size: 13px; }

/* -------------------- footer -------------------- */
.footer { padding: 40px 0 32px; margin-top: 60px; border-top: 2px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; gap: 12px; }
.socials { display: flex; gap: 16px; }
.socials a { color: var(--text-muted); border: none; font-size: 12px; }
.socials a:hover { color: var(--accent); }

/* -------------------- subpage layout -------------------- */
.back-link { display: inline-block; font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; border: none; }
.back-link:hover { color: var(--accent); border: none; }
.subpage h1 { font-size: 30px; font-weight: 500; margin: 0 0 20px; letter-spacing: -0.01em; }
.embed-wrap { border: 2px solid var(--border); aspect-ratio: 16/9; margin-bottom: 16px; overflow: hidden; background: var(--bg-alt); }
.embed-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.embed-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 13px; padding: 20px; text-align: center; }
.external-link { font-size: 13px; display: inline-block; margin-bottom: 24px; }
.subpage-body { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin: 24px 0; }
.subpage-body p { margin: 0 0 14px; }

/* meta-list: My work / Tools headers on their own line, bold + bigger */
.meta-list { margin: 26px 0; }
.meta-item { margin-bottom: 16px; }
.meta-label { display: block; font-weight: 700; font-size: 17px; color: var(--text); margin-bottom: 4px; letter-spacing: 0.01em; }
.meta-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

.subpage-audio { margin: 30px 0; }
.subpage-audio h3 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 14px; font-weight: 500; }
.footnote { font-size: 13px; color: var(--text-muted); margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--border); }

/* -------------------- responsive -------------------- */
@media (max-width: 720px) {
  .work-grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .hero { padding-bottom: 12px; }
  .hero h1 { font-size: 28px; }
  .reel { flex-wrap: wrap; }
  .waveform { flex-basis: 100%; }
  .track-len { margin-left: 0; }
  .contact h2 { font-size: 22px; }
  .form { padding: 20px; }
  .subpage h1 { font-size: 24px; }
  .section.about { padding-top: 14px; }

  .about-row { flex-direction: column; gap: 20px; }
  .about-photo-wrap {
    padding-right: 0;
    padding-bottom: 20px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    align-items: center;
    padding-top: 0;
    flex: 1;
  }
  .about-text { flex: 1; }
  .about-photo, .about-photo-fallback { max-width: 220px; }
}
@media (max-width: 480px) {
  .nav { padding: 20px 0 18px; }
  .nav-links { gap: 14px; font-size: 13px; }
  .hero h1 { font-size: 24px; }
  .container { padding: 0 20px; }
  .section-label { font-size: 15px; }
  .about-text .pop { font-size: 16px; }
}
