:root {
  color-scheme: dark;
  --bg: #171817;
  --ink: #f4f1e9;
  --soft: #cbc9c2;
  --muted: #b1b2a9;
  --line: #3c3d37;
  --orange: #ff905d;
  --serif: "Iowan Old Style", "Baskerville", "Georgia", serif;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
h1,h2,h3,p,figure,ol { margin: 0; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
a,button,summary { -webkit-tap-highlight-color: transparent; }
button,summary { cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
::selection { background: #f9a47c; color: #20190e; }
.shell { width: min(88%, 1390px); margin-inline: auto; }
.skip { position: fixed; z-index: 10; left: 1rem; top: 1rem; transform: translateY(-200%); padding: .7rem 1rem; color: #191917; background: var(--ink); }
.skip:focus { transform: none; }
.mast { display: flex; align-items: center; justify-content: space-between; min-height: 80px; border-bottom: 1px solid var(--line); }
.brand,.mast nav,.mast nav a,.mark,.primary,.text-link,.outcome { display: inline-flex; align-items: center; }
.brand { gap: 12px; font-size: 17px; font-weight: 650; letter-spacing: -.045em; }
.mark { gap: 2px; height: 26px; transform: skew(-12deg); }
.mark i { width: 3px; background: var(--orange); height: 11px; }
.mark i:nth-child(2) { height: 20px; }
.mark i:nth-child(3) { height: 28px; }
.mark i:nth-child(4) { height: 17px; }
.mark i:last-child { height: 8px; }
.mast nav { gap: clamp(15px,2.4vw,40px); }
.mast nav a { min-height: 44px; font-size: 14px; }
.mast .contact-button { min-height: 37px; border: 1px solid #66675e; border-radius: 30px; gap: 12px; padding: 4px 16px; }
.mast a:hover,.text-link:hover,.footer-meta a:hover,.email:hover { color: var(--orange); }
.hero { padding-block: clamp(22px,3vw,46px) clamp(34px,4vw,60px); }
.hero-stage { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(315px,34vw,492px); background: #171817; }
.studio-film { position: absolute; inset: 0 0 0 32%; z-index: -1; overflow: hidden; }
.studio-film video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.studio-film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,var(--bg),#171817df 10%,#1718175c 31%,transparent 56%),linear-gradient(0deg,#170f0dc9,transparent 25%); }
.studio-film figcaption { position: absolute; z-index: 1; right: 18px; bottom: 16px; color: #fff3e6; font: 11px/1.4 var(--mono); }
.studio-film figcaption span { margin-left: 7px; padding-left: 9px; border-left: 1px solid #f4e9d678; }
.hero-title { padding-block: 42px 24px; }
.hero-notes { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: clamp(20px,3vw,50px); align-items: center; padding-top: clamp(22px,2.2vw,35px); }
.archive-prints { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); gap: 16px; width: clamp(215px,20vw,290px); justify-self: end; }
.archive-print { min-width: 0; }
.archive-print img { display: block; height: clamp(57px,5.2vw,80px); width: auto; border: 3px solid #d9d0bb; transform: rotate(-3deg); }
.archive-print:nth-child(2) img { transform: rotate(2deg); }
.archive-print figcaption { margin-top: 9px; color: var(--soft); font: italic 16px/1.12 var(--serif); }
.archive-print figcaption span { display: block; margin-top: 7px; font: 11px/1 var(--mono); color: var(--muted); }
.kicker { font: 500 11px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.kicker { display: flex; align-items: center; gap: 12px; }
.accent,.dot { color: var(--orange); }
.dash { width: 24px; height: 1px; background: currentColor; }
h1 { margin: 20px 0 0; font-size: clamp(64px,7.25vw,117px); font-weight: 500; line-height: 1.035; letter-spacing: -.075em; }
h1 em { font-family: var(--serif); font-size: 1.11em; font-weight: 400; letter-spacing: -.065em; color: #f2d4bc; }
.intro { font-size: clamp(16px,1.2vw,20px); color: var(--soft); line-height: 1.58; }
.hero-intro { display: grid; grid-template-columns: auto minmax(0,1fr); grid-template-rows: auto auto; align-content: center; gap: 14px clamp(14px,1.8vw,26px); min-width: 0; }
.hero-portrait { position: relative; grid-row: 1 / 3; align-self: center; justify-self: start; }
.hero-headshot { display: block; width: 160px; height: 160px; border-radius: 9px; border: 1px solid #66675e; object-fit: cover; }
.hero-portrait::after {
  content: "";
  position: absolute;
  inset: calc(100% + 2px) 1px auto;
  height: 25px;
  border-radius: 0 0 8px 8px;
  background: url("assets/esteban-headshot.jpg") center bottom / 100% auto no-repeat;
  transform: scaleY(-1);
  mask-image: linear-gradient(to top, #0008, transparent);
  opacity: .4;
  filter: blur(1px);
  pointer-events: none;
}
.hero-intro .intro { align-self: end; }
.hero-intro .primary { grid-column: 2; align-self: start; }
.primary {
  justify-self: start;
  gap: 26px;
  padding: 12px 18px;
  border-radius: 5px;
  background: var(--orange);
  box-shadow: inset 0 1px 0 #ffffff59, inset 0 -2px 0 #50200938,
    0 2px 4px #0006, 0 8px 22px -6px #ff905d80;
  color: #231b16;
  font-size: 14px;
  font-weight: 650;
}
.primary span { font-size: 18px; line-height: 1; }
.primary:hover { background: #ffab84; }
.primary:hover,.primary:focus-visible {
  box-shadow: inset 0 1px 0 #ffffff70, inset 0 -2px 0 #50200938,
    0 2px 4px #0006, 0 8px 26px -5px #ff905db0;
}
.primary:active {
  box-shadow: inset 0 1px 3px #50200945, 0 3px 10px -3px #ff905d80;
}
.contact-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(140px,23%); align-items: center; gap: 24px; padding-bottom: 28px; }
.signal { width: 100%; max-width: 240px; justify-self: end; padding-inline: 6px; }
.plot { position: relative; aspect-ratio: 1.57; }
.grid-paper { position: absolute; inset: 0; background-image: radial-gradient(circle, #c8ac8650 .8px, transparent 1px); background-size: 16px 16px; mask-image: radial-gradient(ellipse,#0008 20%,#000 65%,#0003 100%); }
.signal-art { position: absolute; width: 100%; height: 110%; top: -5%; display: grid; place-items: center; mix-blend-mode: screen; }
.signal-art > * { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; min-width: 0; min-height: 0; }
.signal-art:has(canvas:not([hidden])) { mix-blend-mode: normal; }
.cross { position: absolute; width: 9px; height: 9px; background: linear-gradient(#838378,#838378) center / 1px 100% no-repeat, linear-gradient(#838378,#838378) center / 100% 1px no-repeat; }
.tl,.bl { left: -4px; } .tr,.br { right: -4px; } .tl,.tr { top: -4px; } .bl,.br { bottom: -4px; }
.section-rail { display: flex; gap: 20px; align-items: center; }
.section-rail h2,.section-rail p { font-weight: 600; }
.rule { flex: 1; height: 1px; background: var(--line); }
.faint { color: var(--muted); letter-spacing: .06em; }
#work,#approach,#test { scroll-margin-top: 24px; }
.project { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(40px,6vw,110px); padding-block: clamp(40px,4vw,70px) clamp(54px,6vw,98px); align-items: start; }
.project-copy { max-width: 53ch; }
.project-id { gap: 13px; color: var(--muted); }
.project-id span { color: var(--orange); border-right: 1px solid #595950; padding-right: 13px; }
.project h3,.process h2 { font-weight: 500; line-height: 1.04; letter-spacing: -.065em; font-size: clamp(41px,4.25vw,72px); }
.project h3 { margin: 18px 0; }
.project-copy > p:not(.kicker),.notes p,.steps p,.process-intro { color: var(--muted); line-height: 1.62; }
.project-copy > p:not(.kicker) + p { margin-top: 14px; }
.project-copy > p.standfirst:not(.kicker) { color: var(--ink); font-size: clamp(18px,1.45vw,23px); line-height: 1.4; max-width: 32ch; letter-spacing: -.025em; }
.notes { margin-top: 24px; border-block: 1px solid var(--line); }
.notes summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 13px 2px; font-size: 14px; font-weight: 550; }
.notes summary::-webkit-details-marker { display: none; }
.notes summary span { width: 12px; height: 12px; background: linear-gradient(var(--orange),var(--orange)) center / 100% 1px no-repeat, linear-gradient(var(--orange),var(--orange)) center / 1px 100% no-repeat; }
.notes[open] summary span { background-size: 100% 1px, 0 0; }
.notes div { padding: 0 0 18px; }
.notes p + p { margin-top: 10px; }
.video-mat { background: radial-gradient(ellipse at 15% 0%, #8b644c 0%, #615045 40%, #36332f 86%); padding: clamp(17px,3vw,55px); display: grid; place-items: center; border-radius: 9px; border: 1px solid #766457; }
.video-window { position: relative; width: 100%; border: 1px solid #a18d7b; border-radius: 6px; overflow: hidden; box-shadow: 0 16px 31px #16120f66; background: #181818; }
.video-window video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; }
.video-file { position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%); border: 1px solid #d9cbb3; border-radius: 24px; background: #171815f5; color: var(--ink); min-height: 44px; padding: 9px 17px; font: 550 13px var(--sans); white-space: nowrap; }
.media-caption { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; color: var(--muted); margin: 13px 0 0; font-size: 12px; }
.media-caption strong { font-weight: 550; color: var(--soft); }
.outcome { gap: 9px; margin-top: 23px; padding-top: 16px; border-top: 1px solid var(--line); width: 100%; font-size: 14px; color: var(--soft); }
.tiny-dot { flex: 0 0 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.asleep,.test-overview { grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: clamp(40px,6vw,110px); }
.asleep { border-top: 1px solid var(--line); align-items: center; }
.asleep .project-copy { grid-column: 2; grid-row: 1; }
.sound-figure { grid-column: 1; grid-row: 1; min-width: 0; }
.phones { position: relative; border-radius: 9px; background: radial-gradient(ellipse at 14% 0%,#566b70,transparent 63%),linear-gradient(126deg,#42585c,#29383a 72%); border: 1px solid #566466; }
.phone-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: inherit; }
.phone-track::-webkit-scrollbar { display: none; }
.phone-pair { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; gap: 5%; padding: clamp(28px,3vw,50px) max(34px,7%); scroll-snap-align: start; }
.phone-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; padding: 0 0 3px; border: 0; background: transparent; color: #fff6e8; font: 30px/1 var(--sans); isolation: isolate; }
.phone-arrow::before { content: ""; position: absolute; z-index: -1; inset: 6px; border: 1px solid #afc3c066; border-radius: 50%; background: #243738cc; }
.phone-arrow:hover::before, .phone-arrow:focus-visible::before { background: #152729; border-color: #d8e3de; }
.phone-arrow.previous { left: 0; }
.phone-arrow.next { right: 0; }
.phone-arrow[hidden] { display: none; }
.phones a { width: 41%; display: block; filter: drop-shadow(0 10px 12px #131d205c); outline-offset: 4px; cursor: zoom-in; }
.phones a:first-child { transform: translateY(-3%); }
.phones a:last-child { transform: translateY(3%); }
.phones :is(img, video) { width: 100%; height: auto; display: block; }
.text-link { gap: 15px; min-height: 44px; border-bottom: 1px solid #a47761; margin-top: 16px; font-size: 14px; }
.text-link span { color: var(--orange); }
.process { background: #20211e; border-block: 1px solid var(--line); padding-block: clamp(44px,5vw,85px); }
.test-section { background: var(--bg); border-top: 0; }
.test-overview { display: grid; align-items: start; margin-top: 45px; }
.test-heading { grid-column: 2; grid-row: 1; }
.test-copy { grid-column: 1; grid-row: 1; max-width: 54ch; color: var(--muted); line-height: 1.62; }
.test-copy p + p { margin-top: 14px; }
.process-layout { display: grid; grid-template-columns: .88fr 1.12fr; gap: 9%; margin-top: 45px; }
.process-intro { margin-top: 22px; max-width: 35ch; font-size: 18px; }
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 23px 42px; }
.steps li + li { border-top: 1px solid var(--line); padding-top: 21px; }
.steps li::before { content: "0" counter(step); position: absolute; left: 0; margin-top: 5px; color: var(--orange); font: 12px var(--mono); }
.steps h3 { font-weight: 550; font-size: 20px; letter-spacing: -.035em; }
.steps p { margin-top: 6px; }
.qa-toolkit { margin-top: clamp(32px,5vw,72px); padding-top: clamp(30px,4vw,56px); border-top: 1px solid var(--line); }
.qa-intro h3 { font-size: clamp(23px,2.2vw,32px); font-weight: 500; letter-spacing: -.04em; }
.qa-intro p { margin-top: 4px; color: var(--muted); }
.qa-feature { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(24px,5vw,75px); align-items: start; padding-block: clamp(30px,4.5vw,64px); }
.qa-feature + .qa-feature { border-top: 1px solid var(--line); }
.qa-feature:last-child { padding-bottom: 0; }
.qa-copy h4 { margin: 10px 0 16px; font: 400 clamp(29px,3.3vw,50px)/1.07 var(--serif); letter-spacing: -.045em; }
.qa-copy p:not(.kicker),.qa-note { color: var(--muted); }
.qa-copy p + p { margin-top: 12px; }
.qa-shot { min-width: 0; }
.qa-image { display: grid; place-items: center; background: #171817; border: 1px solid var(--line); border-radius: 7px; padding: clamp(6px,1vw,14px); cursor: zoom-in; }
.qa-image:hover { border-color: var(--orange); }
.qa-image img { display: block; max-width: 100%; height: auto; border-radius: 4px; }
.qa-pair { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 14px; align-items: start; }
.qa-setup .qa-image img { max-height: 275px; width: auto; object-fit: contain; }
.qa-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(8px,2vw,22px); margin: 0; }
.qa-metrics div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 5px; border-top: 1px solid var(--line); padding-top: 12px; }
.qa-metrics dd { margin: 0; color: var(--orange); font: 400 clamp(24px,3vw,44px)/1 var(--serif); letter-spacing: -.04em; }
.qa-metrics dt,.qa-note { font-size: 13px; }
.qa-note { margin-top: 14px; }
footer { padding-block: 52px 26px; }
.email { display: inline-block; margin: 12px 0 0; font: 400 clamp(24px,4.2vw,74px)/1.2 var(--serif); letter-spacing: -.045em; }
.email span { color: var(--orange); font: .7em var(--sans); }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 15px; font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 18px; }
.footer-meta a { padding-block: 10px; }
dialog { max-width: 96vw; max-height: 96dvh; padding: 0 14px 14px; color: var(--ink); background: #20211f; border: 1px solid #62635c; border-radius: 8px; }
dialog::backdrop { background: #101110e8; }
.viewer-bar { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 8px 0; }
.viewer-bar h2 { font-size: 14px; font-weight: 550; }
.viewer-bar button { min-height: 40px; border: 0; background: none; font-size: 14px; }
.viewer-bar button span { margin-left: 5px; }
dialog :is(img, video) { display: block; max-width: 100%; max-height: calc(94dvh - 74px); width: auto; height: auto; margin: auto; }
.viewer-original:not([hidden]) { display: table; margin: 10px auto 0; color: var(--orange); font-size: 13px; }
dialog:has(.viewer-original:not([hidden])) img { max-height: calc(94dvh - 108px); }
@media (max-width: 900px) {
  .shell { width: 90%; }
  .project,.test-overview { gap: 32px; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); }
  .media-caption { flex-direction: column; gap: 2px; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 40px); }
  .mast { min-height: 68px; }
  .brand { gap: 7px; font-size: 15px; }
  .mast nav { gap: 14px; }
  .mast nav a { font-size: 13px; }
  .mast .contact-button { min-height: 36px; padding: 4px 11px; gap: 6px; }
  .hero { padding-block: 18px 34px; }
  .hero-stage { min-height: clamp(330px,89vw,460px); }
  .studio-film { inset: 0; }
  .studio-film video { object-position: 52% 30%; }
  .studio-film::after { background: linear-gradient(0deg,var(--bg) 0%,#171817ec 13%,#17181782 37%,transparent 68%),linear-gradient(180deg,#16100c80,transparent 17%); }
  .studio-film figcaption { top: 10px; left: 12px; bottom: auto; right: auto; font-size: 10px; }
  .hero-title { padding: 0 0 5px; }
  .hero-title .kicker { font-size: 9px; color: #ffc7a5; }
  .hero-notes { grid-template-columns: minmax(0,1fr); gap: 15px; }
  .hero-portrait { grid-row: auto; }
  .hero-intro .intro { align-self: center; }
  .hero-intro .primary { grid-column: 1 / -1; }
  .archive-prints { justify-self: start; margin-top: 5px; }
  .archive-print img { height: 56px; border-width: 2px; }
  .archive-print figcaption { font-size: 14px; }
  .archive-print figcaption span { margin-top: 4px; font-size: 10px; }
  h1 { font-size: clamp(43px,10.65vw,73px); margin-top: 9px; }
  .contact-row { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .signal { width: 152px; justify-self: start; }
  .plot { aspect-ratio: 1.94; }
  .kicker { font-size: 10px; }
  .project,.asleep,.process-layout,.test-overview { grid-template-columns: 1fr; gap: 27px; }
  .asleep .project-copy,.sound-figure { grid-column: auto; grid-row: auto; }
  .project-copy { max-width: none; }
  .project h3 { margin-block: 13px; }
  .remoto h3 { max-width: 13ch; }
  .project { padding-block: 34px 45px; }
  .video-mat { padding: 20px; }
  .media-caption { flex-direction: row; flex-wrap: wrap; gap: 3px 10px; }
  .outcome { margin-top: 15px; }
  .phone-pair { padding-block: 30px; }
  .process-layout,.test-overview { margin-top: 28px; }
  .test-heading,.test-copy { grid-area: auto; }
  .process-intro { margin-top: 12px; }
  .steps li { padding-left: 31px; }
  .qa-feature { grid-template-columns: 1fr; }

}
@media (max-width: 430px) {
  .hero-intro { grid-template-columns: minmax(0,1fr); }
  .hero-portrait::after { height: 12px; }
}
@media (max-width: 375px) {
  .shell { width: calc(100% - 30px); }
  .mast nav { gap: 10px; }
  .mast .contact-button { border: none; padding: 0; }
  .brand { font-size: 14px; }
  .brand .mark { gap: 1px; }
  h1 { font-size: clamp(40px,11.5vw,44px); }
  .section-rail { gap: 10px; }
}
@media (max-width: 345px) { .brand .mark { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .primary { transition: box-shadow .18s ease; }
  .signal-art {
    pointer-events: none;
    animation: ribbon-float 12s ease-in-out infinite;
    transform: perspective(900px) rotateX(var(--pitch, 0deg)) rotateY(var(--yaw, 0deg)) scale(var(--zoom, 1));
    transform-origin: var(--origin-x, 50%) var(--origin-y, 50%);
    transition: transform .45s ease-out, transform-origin .45s ease-out;
  }
  @keyframes ribbon-float {
    0%,100% { translate: 0 0; rotate: -1deg; }
    30% { translate: 1% -2.2%; rotate: 1.4deg; }
    68% { translate: -.7% -.6%; rotate: .2deg; }
  }
  a,button,summary { transition: color .15s, background-color .15s, border-color .15s; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.evolving-demo { mask: url("assets/sound-evolving-mode.webp") center / 100% 100% no-repeat; }
