/* Cut Time Music — light one-page design */

:root {
  --bg: #f8f8f9;
  --surface: #ffffff;
  --ink: #192238;        /* headings, buttons, played waveform */
  --text: #3a4150;       /* body text */
  --muted: #6c727d;      /* secondary text */
  --warm: #9d978b;       /* second half of the wordmark */
  --line: #e3e4e8;
  --wave: #cdc9c1;       /* unplayed waveform */
  --error: #b42318;
  --ok: #1d6b3a;
  --header-h: 72px;
  --font: "Jost", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 300 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { color: var(--ink); font-weight: 500; line-height: 1.2; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; }
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 248, 249, .94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1160px; margin: 0 auto; min-height: var(--header-h);
  padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 40px; }
.brand-name { font-size: 22px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--warm); white-space: nowrap; }
.brand-name span { color: var(--ink); font-weight: 500; }
.brand-role {
  border-left: 1px solid var(--muted); padding-left: 14px;
  font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.site-nav { display: flex; gap: 30px; }
.site-nav a { font-size: 13px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); }
.site-nav a:hover { text-decoration: none; color: var(--warm); }

/* ---------- Intro: photos + one line ---------- */
.intro { padding: 64px 24px 24px; text-align: center; }
.duo { display: flex; justify-content: center; gap: clamp(16px, 4vw, 40px); }
.portrait { margin: 0; }
.portrait img {
  width: min(214px, 40vw); aspect-ratio: 214 / 314; object-fit: cover;
  border: 6px solid var(--surface);
  box-shadow: 0 22px 40px -22px rgba(25, 34, 56, .55), 0 2px 6px rgba(25, 34, 56, .08);
}
.portrait figcaption { margin-top: 16px; font-size: 12px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; color: var(--ink); }
.intro-line {
  max-width: 740px; margin: 44px auto 0;
  font-size: clamp(19px, 2.4vw, 24px); line-height: 1.55; color: var(--ink); font-weight: 300;
}
.announcement { margin: 18px 0 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.announcement a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.announcement a:hover { color: var(--warm); }

/* ---------- Sections ---------- */
.section { max-width: 1160px; margin: 0 auto; padding: 72px 24px; }
.section-title {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin: 0 0 40px; font-size: 13px; font-weight: 500; letter-spacing: .38em; text-transform: uppercase; color: var(--muted);
}
.section-title::before, .section-title::after { content: ""; width: 36px; height: 1px; background: var(--muted); opacity: .6; }
.section + .section { border-top: 1px solid var(--line); }
.empty { text-align: center; color: var(--muted); }

/* ---------- Music: player deck ---------- */
.deck { max-width: 900px; margin: 0 auto; }
.deck-now { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 10px; }
.deck-title { color: var(--ink); font-size: 18px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deck-time { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.deck-wave { height: 110px; cursor: pointer; touch-action: pan-y; }
.deck-wave canvas { width: 100%; height: 100%; display: block; }
.deck-controls { display: flex; justify-content: center; align-items: center; gap: 26px; margin-top: 18px; }
.deck-controls button { display: grid; place-items: center; color: var(--ink); }
.deck-controls svg { fill: currentColor; }
.deck-prev svg, .deck-next svg { width: 22px; height: 22px; }
.deck-prev:hover, .deck-next:hover { color: var(--warm); }
.deck-play { width: 58px; height: 58px; border-radius: 50%; background: var(--ink); color: #fff !important; box-shadow: 0 8px 20px -8px rgba(25, 34, 56, .6); transition: transform .15s; }
.deck-play:hover { transform: scale(1.06); }
.deck-play svg { width: 26px; height: 26px; }
.i-pause { display: none; }
.is-playing .i-play { display: none; }
.is-playing .i-pause { display: block; }

/* ---------- Music: playlist tabs + track list ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; margin: 48px auto 18px; }
.tabs [role="tab"] {
  padding: 8px 14px; font-size: 12px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  border-bottom: 2px solid transparent;
}
.tabs [role="tab"]:hover { color: var(--ink); }
.tabs [aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }

.tracklist { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; }
.track { border-bottom: 1px solid var(--line); }
.track-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; }
.track-play { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; text-align: left; }
.track-icon { flex: none; width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent var(--ink); }
.track.is-playing .track-icon { width: 9px; height: 10px; border: 0; border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); }
.track-title { font-size: 15px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-artist { font-size: 13px; color: var(--muted); white-space: nowrap; }
.track-play:hover .track-title { color: var(--ink); }
.track.is-active .track-title { color: var(--ink); font-weight: 500; }
.track-length { flex: none; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 38px; text-align: right; }
.track-info {
  flex: none; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px;
}
.track-info:hover, .track-info[aria-expanded="true"] { color: var(--ink); border-color: var(--ink); }
.track-meta { padding: 0 4px 16px 26px; }
.track-meta dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 24px; font-size: 14px; }
.track-meta dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.track-meta dd { margin: 0; color: var(--text); }

/* ---------- Films gallery ---------- */
.film-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 36px 28px; }
.film-card { display: block; color: var(--ink); }
.film-card:hover { text-decoration: none; }
.film-thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #dcdde2;
  box-shadow: 0 18px 34px -20px rgba(25, 34, 56, .6), 0 2px 6px rgba(25, 34, 56, .08);
}
.film-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.film-card:hover .film-thumb img { transform: scale(1.04); }
.play-badge {
  position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px;
  border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.play-badge::after {
  content: ""; position: absolute; left: 21px; top: 17px;
  border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--ink);
}
.film-card:hover .play-badge { transform: scale(1.1); }
.film-title { display: block; margin-top: 14px; text-align: center; font-size: 13px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Contact ---------- */
.contact { max-width: 760px; }
.contact-lead { text-align: center; margin: -16px 0 32px; color: var(--muted); }
.contact-lead span { margin: 0 8px; }
.contact-form { display: grid; gap: 18px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 6px; font-size: 11px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; font: 300 16px/1.5 var(--font); color: var(--ink); letter-spacing: normal; text-transform: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 2px;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form .btn { justify-self: center; margin-top: 6px; }
.field-error { font-size: 13px; letter-spacing: normal; text-transform: none; color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; margin: 0 0 20px; border-left: 3px solid; background: var(--surface); }
.notice.success { border-color: var(--ok); color: var(--ok); text-align: center; }
.notice.error { border-color: var(--error); color: var(--error); }

.btn {
  display: inline-block; padding: 13px 34px; font-size: 13px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  box-shadow: 0 10px 22px -12px rgba(25, 34, 56, .7); transition: background .15s, color .15s;
}
.btn:hover { background: transparent; color: var(--ink); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 24px 56px; text-align: center; }
.social { list-style: none; margin: 0 0 16px; padding: 0; display: flex; justify-content: center; gap: 22px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); background: var(--surface); transition: background .15s, color .15s; }
.social a:hover { background: var(--ink); color: #fff; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.copyright { margin: 0; font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.has-mini .site-footer { padding-bottom: 104px; }

/* ---------- 404 ---------- */
.notfound { max-width: 640px; margin: 0 auto; padding: 96px 24px; text-align: center; }
.notfound h1 { font-size: 30px; font-weight: 400; letter-spacing: .08em; }
.notfound .btn { margin: 8px 6px; }

/* ---------- Mini player (shown while playing, when the big player is scrolled away) ---------- */
.mini-player {
  position: fixed; z-index: 60; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: min(560px, calc(100% - 32px)); overflow: hidden;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 10px 16px 12px 10px; border-radius: 10px;
  background: var(--ink); color: #fff; box-shadow: 0 16px 36px -12px rgba(25, 34, 56, .6);
}
.mini-player[hidden] { display: none; }
.mp-play { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; }
.mp-play svg { width: 18px; height: 18px; fill: currentColor; }
.mp-title { color: #fff; font-size: 14px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-time { font-size: 12px; opacity: .75; font-variant-numeric: tabular-nums; }
.mp-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .2); }
.mp-progress-fill { height: 100%; width: 0; background: #fff; }

/* ---------- Video lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(16, 20, 32, .92); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox-frame { width: min(1100px, 100%); aspect-ratio: 16 / 9; background: #000; }
.lightbox-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox-close { position: absolute; top: 12px; right: 18px; font-size: 40px; line-height: 1; color: #fff; }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .brand-role { display: none; }
}
@media (max-width: 560px) {
  :root { --header-h: 96px; }
  .header-inner { justify-content: center; padding: 10px 16px; }
  .brand { gap: 10px; }
  .brand-mark { width: 22px; height: 32px; }
  .brand-name { font-size: 18px; letter-spacing: .14em; }
  .site-nav { gap: 22px; }
  .site-nav a { font-size: 12px; }
  .intro { padding: 40px 16px 8px; }
  .intro-line { margin-top: 32px; }
  .section { padding: 56px 16px; }
  .deck-wave { height: 80px; }
  .field-pair { grid-template-columns: 1fr; }
  .film-grid { grid-template-columns: 1fr; gap: 28px; }
  .track-meta { padding-left: 4px; }
  .contact-lead span { display: none; }
  .contact-lead a { display: block; }
}
