/* Dr Tinitus — mobile-first. Fonts: drop woff2 files into /assets/fonts (see README). */
@font-face { font-family: "Ubuntu"; src: local("Ubuntu"), url("../fonts/Ubuntu-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Ubuntu"; src: local("Ubuntu Medium"), url("../fonts/Ubuntu-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Ubuntu"; src: local("Ubuntu Bold"), url("../fonts/Ubuntu-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Serif"; src: local("Noto Serif Bold Italic"), url("../fonts/NotoSerif-BoldItalic.ttf") format("truetype"); font-weight: 700; font-style: italic; font-display: swap; }

:root {
    --ink: #1f1d1b;
    --ink-2: #26231f;
    --ink-3: #171514;
    --cream: #ede6d8;
    --terra: #b86d57;
    --yellow: #ffc21a;
    --orange: #f2661c;
    --sage: #a9b69b;
    --muted: #a39b8c;
    --line: rgba(237, 230, 216, .16);
    --sans: "Ubuntu", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --serif: "Noto Serif", Georgia, "Times New Roman", serif;
    --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--ink); color: var(--cream); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--cream); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.brand-logo { display: block; width: 48px; height: 48px; border-radius: 50%; background: #000; box-shadow: 0 0 0 2px var(--yellow); }
.hero .wrap { position: relative; }
.hero-logo { display: block; width: 150px; height: 150px; margin: 0 0 24px; border-radius: 50%; background: #000; box-shadow: 0 0 0 3px var(--yellow); }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cream); color: var(--terra); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; }
.nav a:not(.btn) { text-decoration: none; display: none; }
.nav a:not(.btn):hover { color: var(--yellow); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border: 1px solid transparent; background: var(--cream); color: var(--ink); font: 500 14px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { background: var(--yellow); transform: translateY(-1px); }
.btn-wide { width: 100%; justify-content: space-between; padding: 18px 22px; font-size: 16px; border: 1px solid var(--cream); }
.btn .arrow, .link-arrow .arrow { transition: transform .15s; }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(3px); }
.header-inner .btn { padding: 10px 14px; font-size: 13px; }

/* Type */
.display { margin: 0; font-size: clamp(46px, 13vw, 104px); line-height: .92; letter-spacing: -.05em; font-weight: 700; }
em { font-family: var(--serif); font-style: italic; font-weight: 700; color: var(--yellow); letter-spacing: -.03em; }
.title { margin: 0 0 20px; font-size: clamp(34px, 8.5vw, 56px); line-height: .98; letter-spacing: -.045em; font-weight: 700; }
.title em { display: block; }
.title.big { font-size: clamp(40px, 10vw, 68px); }
.label, .eyebrow, .caption { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin: 0 0 18px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(255,194,26,.2); }
.body, .lead { font-size: 17px; max-width: 34em; }

/* Hero */
.hero { padding: 56px 0 30px; border-bottom: 1px solid var(--line); }
.lead { margin: 44px 0 56px; font-size: 18px; }
.waveform { display: flex; align-items: center; justify-content: space-between; gap: 3px; height: 74px; border-bottom: 1px solid rgba(237, 230, 216, .4); padding-bottom: 4px; }
.waveform span { flex: 1; height: var(--h); min-height: 8px; background: var(--cream); animation: pulse 2.4s ease-in-out infinite; animation-delay: calc(var(--d) * -.12s); transform-origin: center; }
.waveform span:nth-child(n+31) { display: none; }
@keyframes pulse { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.55); } }
.caption { text-align: right; margin: 14px 0 0; font-size: 10px; color: var(--cream); }

/* Services */
.services { background: var(--ink-2); padding: 72px 0; }
.section-head { display: grid; gap: 8px; margin-bottom: 40px; }
.section-head .title { max-width: 14em; }
.cards { display: grid; gap: 14px; grid-auto-rows: 1fr; }
.card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 22px 20px; border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--yellow); transform: translateY(-2px); }
.num { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--cream); border-radius: 50%; font-size: 11px; }
.card h3 { margin: 4px 0 0; font-size: 28px; letter-spacing: -.04em; line-height: 1; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card .link-arrow { margin-top: auto; padding-top: 4px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; text-decoration: none; }

/* Split sections */
.split { display: grid; gap: 40px; align-items: center; }
.listen { padding: 80px 0; }
.player { background: #181615; border: 1px solid var(--line); border-radius: 8px; padding: 18px; box-shadow: 14px 14px 0 rgba(0, 0, 0, .25); }
.player-bar { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }
.player iframe { display: block; border: 0; border-radius: 12px; background: #121212; }

/* Gallery */
.gallery { background: var(--ink-3); padding: 72px 0; border-top: 1px solid var(--line); overflow: hidden; }
.gallery-card { overflow: hidden; }
.gallery-stage { display: flex; gap: 12px; align-items: stretch; }
.slides { flex: 1; min-width: 0; overflow: hidden; display: flex; flex-direction: column; border-radius: 6px; }
.slide { flex: 0 0 auto; margin: 0; }
.slide img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: var(--ink-2); }
.slide figcaption { margin-top: 10px; height: 52px; overflow: hidden; font-size: 14px; color: var(--muted); }
.slide figcaption .credit { display: block; margin-top: 4px; font-size: 11px; opacity: .75; }
.slide figcaption span { color: var(--yellow); font-weight: 700; margin-right: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Console-style fader strip */
.fader-strip { flex: none; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0 8px; background: linear-gradient(180deg, #23211f, #151312); border: 1px solid var(--line); border-radius: 6px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.round { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--cream); background: transparent; color: var(--cream); font-size: 18px; cursor: pointer; transition: background .15s, color .15s; }
.round.sm { width: 28px; height: 28px; font-size: 13px; line-height: 1; padding: 0; }
.round:hover { background: var(--cream); color: var(--ink); }
.fader-body { position: relative; flex: 1; width: 100%; min-height: 150px; }
.scale { position: absolute; left: 0; right: 0; top: 26px; bottom: 26px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.scale li { position: relative; height: 0; font-size: 9px; font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.scale li span { position: absolute; left: 3px; top: 0; transform: translateY(-50%); }
.scale li::before, .scale li::after { content: ""; position: absolute; top: 0; width: 8px; height: 1px; background: var(--cream); opacity: .5; }
.scale li::before { left: 19px; }
.scale li::after { left: 37px; }
.fader-now { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--cream); }

input[type="range"] { -webkit-appearance: none; appearance: none; background: transparent; margin: 0; cursor: grab; }
input[type="range"]:active { cursor: grabbing; }
.vfader { position: absolute; inset: 0; width: 100%; height: 100%; writing-mode: vertical-lr; }
.vfader::-webkit-slider-runnable-track { width: 6px; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #050505, #1d1b1a 50%, #050505); box-shadow: inset 0 0 0 1px rgba(237, 230, 216, .2); }
.vfader::-moz-range-track { width: 6px; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #050505, #1d1b1a 50%, #050505); box-shadow: inset 0 0 0 1px rgba(237, 230, 216, .2); }
.vfader::-webkit-slider-thumb { -webkit-appearance: none; width: 46px; height: 52px; margin-left: -20px; border-radius: 4px; border: 1px solid #0a0908;
    background:
        linear-gradient(to bottom, transparent calc(50% - 1.5px), #f1e9d9 calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
        repeating-linear-gradient(to bottom, rgba(255, 255, 255, .13) 0 1px, rgba(0, 0, 0, .38) 1px 4px),
        linear-gradient(to right, #121110, #3b3937 20%, #57534f 50%, #3b3937 80%, #121110);
    box-shadow: 0 8px 12px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -2px 3px rgba(0, 0, 0, .5); }
.vfader::-moz-range-thumb { width: 46px; height: 52px; border-radius: 4px; border: 1px solid #0a0908;
    background:
        linear-gradient(to bottom, transparent calc(50% - 1.5px), #f1e9d9 calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
        repeating-linear-gradient(to bottom, rgba(255, 255, 255, .13) 0 1px, rgba(0, 0, 0, .38) 1px 4px),
        linear-gradient(to right, #121110, #3b3937 20%, #57534f 50%, #3b3937 80%, #121110);
    box-shadow: 0 8px 12px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -2px 3px rgba(0, 0, 0, .5); }

/* About */
.method { background: var(--ink-2); color: var(--cream); }
.contact { background: var(--ink); color: var(--cream); border-top: 1px solid var(--line); }
.method .label, .contact .label { color: var(--yellow); }
.method { padding: 80px 0; }
.method .title { margin-top: 0; }
.about-grid { display: grid; gap: 28px; margin-top: 28px; }
.about-photo { order: -1; margin: 0; width: min(100%, 300px); background: #151413; border: 1px solid rgba(237, 230, 216, .28); border-radius: 6px; padding: 8px; box-shadow: 10px 10px 0 rgba(255, 194, 26, .16); }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 3px; }
.about-photo figcaption { padding: 8px 2px 2px; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--cream); }
.about-photo figcaption:empty { display: none; }
.about-text .body { margin: 0 0 1.1em; }
.about-text .body:last-child { margin-bottom: 0; }

/* Contact */
.contact { padding: 80px 0 90px; }
.contact em { color: var(--yellow); }
.mail { font-weight: 500; color: var(--yellow); }
.form { display: grid; gap: 22px; }
.form .row { display: grid; gap: 22px; }
.form label { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 10px; padding: 10px 2px; background: transparent; border: 0; border-bottom: 1px solid var(--cream); color: var(--cream); font: 500 13px/1.4 var(--sans); letter-spacing: .04em; border-radius: 0; }
.form textarea { border: 1px solid var(--cream); padding: 12px; resize: vertical; min-height: 110px; }
.form select { appearance: none; background: transparent; color-scheme: dark; }
.form select option { background: var(--ink); color: var(--cream); }
.form ::placeholder { color: rgba(237, 230, 216, .55); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--cream); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.flash { margin: 0; padding: 12px 14px; font-size: 14px; font-weight: 500; background: var(--cream); color: var(--ink); border-left: 4px solid var(--ink); }
.flash-error { border-left-color: #7a1f12; }

/* Footer */
.site-footer { background: var(--ink-3); padding: 44px 0 26px; }
.footer-inner { display: grid; gap: 18px; align-items: center; }
.footer-services, .footer-top { font-size: 12px; margin: 0; }
.footer-legal { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.footer-legal p { margin: 0; }
.socials { list-style: none; display: flex; gap: 22px; margin: 22px 0 0; padding: 0; }
.socials a { color: var(--yellow); display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--yellow); padding-bottom: 2px; }
.socials a:hover { color: var(--cream); border-color: var(--cream); }

/* Tablet and up */
@media (min-width: 760px) {
    :root { --gutter: 40px; }
    .nav a:not(.btn) { display: inline; }
    .hero { padding-top: 90px; }
    .hero-logo { position: absolute; right: 24px; top: 0; width: 300px; height: 300px; margin: 0; }
    .lead { max-width: 640px; }
    .waveform { height: 84px; gap: 6px; }
    .waveform span:nth-child(n+31) { display: block; }
    .section-head { grid-template-columns: 1fr 1fr; align-items: start; }
    .section-head .title { max-width: none; }
    .cards { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .split { grid-template-columns: 1fr 1fr; gap: 60px; }
    .about-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; margin-top: 36px; }
    .about-photo { order: 0; width: min(100%, 420px); justify-self: end; }
    .gallery .split > :first-child { order: 2; }

    .form .row { grid-template-columns: 1fr 1fr; }
    .form .select { max-width: 50%; }
    .footer-inner { grid-template-columns: 1fr auto 1fr; }
    .footer-top { justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .waveform span { animation: none; }
}
