/* Rob Hochstetter Audio — site styles */

@font-face { font-family: "Space Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/raleway-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-weight: 500; font-style: italic; font-display: swap; src: url("../fonts/raleway-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/raleway-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #dad9d9;
  --paper: #ffffff;
  --ink: #0e0e0e;
  --muted: #555;
  --accent: #ff5e1a;
  --accent-dark: #e04a0a;
  --dark: #282828;
  --player: #1b1b1b;
  --line: rgba(0,0,0,.55);
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 62px);
  --maxw: 1440px;
  --header-h: 104px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-weight: 500; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
body.page-white { background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 99px; z-index: 100; }
.skip:focus { left: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: var(--display); font-weight: 500; color: var(--accent);
  letter-spacing: -0.05em; line-height: 1.03; margin: 0 0 .5em;
}
h1 { font-size: clamp(48px, 5.1vw, 76px); }
h2 { font-size: clamp(36px, 3.45vw, 52px); line-height: 1.1; }
h3 { font-size: clamp(22px, 1.7vw, 26px); letter-spacing: -0.02em; line-height: 1.25; }
.lede { max-width: 34em; }
.small { font-size: .85em; }

/* ---------- header ---------- */
.site-header { background: var(--dark); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.logo { font-family: var(--display); font-weight: 500; color: var(--accent); font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -0.05em; text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: clamp(14px, 1.8vw, 30px); }
.nav a { color: var(--accent); text-decoration: none; font-size: clamp(15px, 1.15vw, 19px); padding: 4px 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--accent); }
.nav-toggle span { display: block; width: 28px; height: 2px; background: currentColor; margin: 6px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 860px) {
  :root { --header-h: 76px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--dark);
    flex-direction: column; align-items: flex-start; gap: 6px; padding: 28px var(--gutter);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav a { font-family: var(--display); font-size: 40px; letter-spacing: -0.04em; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { opacity: 1; transform: none; visibility: visible; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- sections & layouts ---------- */
.section { padding: clamp(40px, 4.5vw, 64px) 0 clamp(56px, 6vw, 96px); }
.section + .section { padding-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(32px, 7vw, 120px); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }
.split > .media img { width: 100%; height: auto; object-fit: cover; }
@media (max-width: 860px) { .split, .split--even { grid-template-columns: 1fr; } }

/* home hero: heading top, intro bottom, image right */
.hero-home .copy { display: flex; flex-direction: column; justify-content: space-between; min-height: 100%; gap: 48px; }
.hero-home .media img { aspect-ratio: 4 / 5; }
.hero-home .intro { max-width: 22em; }
@media (min-width: 861px) { .hero-home .split { align-items: stretch; } }

.media img.portrait { aspect-ratio: 4 / 5; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--accent); color: #fff; border: 0; border-radius: 300px; cursor: pointer;
  font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  padding: 1.15em 2.4em; transition: background .2s, transform .2s;
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn--ghost:hover { background: var(--accent); color: #fff; }

/* ---------- services hero ---------- */
.hero-image { position: relative; color: #fff; min-height: clamp(380px, 38vw, 560px); display: flex; align-items: center; overflow: hidden; background: #111; }
.hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.55) 100%); }
.hero-image .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-image h1 { margin: 0; }
.hero-image p { color: #fff; max-width: 26em; }
@media (max-width: 860px) { .hero-image .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; } }

/* ---------- accordion ---------- */
.accordion { border-top: 1px solid var(--line); max-width: 830px; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 18px 0; font-size: clamp(17px, 1.3vw, 20px);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; flex: none; width: 15px; height: 15px; background:
  linear-gradient(currentColor,currentColor) center/100% 1.5px no-repeat,
  linear-gradient(currentColor,currentColor) center/1.5px 100% no-repeat; transition: transform .25s; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion summary:hover { color: var(--accent); }
.accordion .answer { padding: 0 48px 22px 0; max-width: 46em; }
.accordion .answer p:last-child { margin-bottom: 0; }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 48px); margin-top: clamp(32px, 4vw, 64px); }
.process .shape { width: 75px; height: 112px; margin-bottom: 22px; }
.process h3 { color: var(--ink); font-family: var(--body); font-weight: 500; letter-spacing: 0; font-size: clamp(20px, 1.5vw, 23px); margin-bottom: .6em; }
.process p { font-size: .88em; max-width: 19em; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .process { gap: 32px 20px; } .process .shape { width: 56px; height: 84px; } }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; max-width: 640px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { padding: 0; margin-bottom: 6px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: block; font-size: .78em; margin-bottom: 6px; }
.form label .req { color: var(--muted); font-size: .9em; margin-left: .35em; }
.form legend + .row label { font-size: .7em; }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: transparent;
  border: 1px solid #000; border-radius: 27px; padding: 12px 18px; transition: border-color .2s, box-shadow .2s;
}
.form textarea { min-height: 120px; resize: vertical; border-radius: 22px; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.form .hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; padding: 1em 1.9em; }
.form-status { min-height: 1.5em; font-size: .9em; }
.form-status.ok { color: #1c7a35; }
.form-status.err { color: #b3261e; }
.form.sent .fields { display: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: var(--accent); padding: clamp(56px, 6vw, 90px) 0 clamp(48px, 5vw, 72px); }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.site-footer h2 { margin: 0 0 .5em; }
.site-footer .email { font-family: var(--display); font-weight: 500; letter-spacing: -0.05em; text-decoration: none; font-size: clamp(22px, 3.1vw, 48px); line-height: 1.1; text-align: right; overflow-wrap: anywhere; }
.site-footer .email:hover { text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: 2px; }
.fiverr { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); text-decoration: none; }
.fiverr .ico { width: 30px; height: 30px; border: 1.5px solid #fff; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: background .2s, border-color .2s; }
.fiverr:hover .ico { background: var(--accent); border-color: var(--accent); }
.fiverr:hover span:first-child { text-decoration: underline; }
.site-footer .copy { grid-column: 1 / -1; color: #8a8a8a; font-size: .78em; margin-top: 28px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } .site-footer .email { text-align: left; } }

/* ---------- portfolio ---------- */
.rule { border: 0; height: 1px; background: var(--accent); margin: 0; opacity: .8; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 5vw, 80px) clamp(32px, 5vw, 80px); }
.work-grid h2 { margin-bottom: .45em; }
.work-grid .players { display: grid; gap: 14px; margin-top: 26px; max-width: 520px; }
@media (max-width: 860px) { .work-grid { grid-template-columns: 1fr; } }
.sfx-list { columns: 2; column-gap: 32px; padding-left: 1.1em; margin: 0 0 4px; }
.sfx-list li { margin-bottom: .35em; break-inside: avoid; }
.sfx-list li::marker { color: var(--accent); }
.video { position: relative; aspect-ratio: 16 / 9; background: #111; margin-top: 26px; }
.video iframe, .video .poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .poster { display: grid; place-items: center; cursor: pointer; background: #111 center/cover no-repeat; }
.video .poster::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); transition: background .2s; }
.video .poster:hover::before { background: rgba(0,0,0,.1); }
.video .poster .play { position: relative; width: 76px; height: 76px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.video .poster .play::after { content: ""; border-left: 22px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; }

/* ---------- audio player ---------- */
.player { background: var(--player); color: #fff; display: grid; grid-template-columns: 58px 1fr; min-height: 112px; font-size: 15px; }
.player .pp { background: none; border: 0; border-right: 1px solid #3a3a3a; color: #9a9a9a; cursor: pointer; display: grid; place-items: center; padding: 0; }
.player .pp:hover:not(:disabled) { color: var(--accent); }
.player .pp:disabled { cursor: not-allowed; opacity: .45; }
.player .pp svg { width: 18px; height: 18px; }
.player .pp .i-pause { display: none; }
.player.playing .pp .i-play { display: none; }
.player.playing .pp .i-pause { display: block; }
.player .body { padding: 14px 16px 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; }
.player .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.player .title { line-height: 1.25; }
.player .artist { color: #8d8d8d; font-size: .86em; line-height: 1.25; margin-top: 2px; }
.player .ab { display: inline-flex; flex: none; border: 1px solid #4a4a4a; border-radius: 99px; padding: 2px; }
.player .ab button { background: none; border: 0; color: #9a9a9a; font: 500 11px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 99px; cursor: pointer; }
.player .ab button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.player .bar { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; font-size: .78em; color: #8d8d8d; }
.player .track { position: relative; flex: 1; height: 16px; cursor: pointer; }
.player .track::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: #3d3d3d; }
.player .fill { position: absolute; left: 0; top: 7px; height: 2px; width: 0; background: var(--accent); }
.player .track:focus-visible { outline-offset: 0; }
.player .soon { color: #8d8d8d; font-size: .8em; font-style: italic; }
.player.unavailable .bar, .player.unavailable .ab { display: none; }

/* ---------- resume ---------- */
.embed { position: relative; aspect-ratio: 16 / 9.4; background: #111; margin: 28px 0 22px; box-shadow: 0 18px 40px -24px rgba(0,0,0,.5); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 404 ---------- */
.dead-air { min-height: 60vh; display: grid; align-content: center; }
.meter { display: flex; gap: 5px; align-items: flex-end; height: 64px; margin-bottom: 28px; }
.meter i { width: 10px; height: 4px; background: #9a9a9a; }
